Skip to content

Make new Select implementation backwards compatible.

Swap template argument order when implementing DenseBase::select as a CwiseTernaryOp. Swapping the arguments assures backwards compatibility with the old Select implementation, which took storage traits from the second "then" argument, while CwiseTernaryOp takes it from the first argument. This avoids a number of breakages in legacy code mixing arrays and matrices.

Edited by Rasmus Munk Larsen

Merge request reports

Loading