Matrix sum along a dimension is defined to return a MathScalarType
, but might return higher dimension
#3202
Labels
MathScalarType
, but might return higher dimension
#3202
Describe the bug
When summing over an axis of a matrix, we always lose just one dimension. If the matrix is 2D, we'll get a 1D array. If the matrix is 3D, we'll get a 2D matrix.
What happens now, is that
math.sum
declares that it returns aMathScalarType
, instead of optionally returning a matrix.To Reproduce
The text was updated successfully, but these errors were encountered: