reshape#

swordfish.function.reshape()#

Change the dimensions of a matrix and return a new matrix. If dim is not specified, reshape obj to a vector.

参数:
  • obj (Constant) -- A vector/matrix.

  • dim (Constant, optional) -- A pair of integers indicating (row dimension):(column dimension) of the result.