We've had a request for a function that changes the dimensions of a matrix.
Maybe mxRedim(mat, row, col)
? Conformance would require that the total number of elements remain constant. That is, mat->rows mat->cols == row col
.
Semantics would probably fill in by columns.