reshape symbolic matrix
B = Reshape( A, r, c )
symbolic matrix
non-negative integer
Returns a (r,c)-matrix B, which is a reshaped version of matrix A. Please note, the number of elements must match, i.e. r*c == elems(A) must hold.
// create a (3,4)-matrix A = Mat("a"(ones(3,4))) // possible reshapes are ... Reshape(A,1,12) Reshape(A,2,6) Reshape(A,4,3) Reshape(A,6,2) Reshape(A,12,1) | ![]() | ![]() |
SymEngine: C++ library for fast symbolic manipulation.