cr.sparse.lop.reshape

cr.sparse.lop.reshape(in_shape, out_shape, order='C')[source]

Returns a linear operator which reshapes vectors from model space to data space

Parameters
  • in_shape (int) – Shape of vectors in the model space

  • out_shape (int) – Shape of vectors in the data space

  • order – Specifies index order of data layout [‘C’, ‘F’, ‘A’] C means C-like index order (default). F means Fortran like order. This is the order in MATLAB arrays also.

Returns

A reshaping linear operator

Return type

(Operator)