Reshape
Reshape an \(m' \times n'\) matrix into an \(m \times n\) matrix,
where \(m'n' = mn\), with the entries maintaining their column-major
ordering.
Python API
-
Reshape
(m, n, A)
C++ API
-
void
Reshape
(Int m, Int n, const Matrix<T> &A, Matrix<T> &ASub)
-
Matrix<T>
Reshape
(Int m, Int n, const Matrix<T> &A)
-
void
Reshape
(Int m, Int n, const AbstractDistMatrix<T> &A, AbstractDistMatrix<T> &ASub)
-
AbstractDistMatrix<T>
Reshape
(Int m, Int n, const AbstractDistMatrix<T> &A)
-
void
Reshape
(Int m, Int n, const SparseMatrix<T> &A, SparseMatrix<T> &ASub)
-
SparseMatrix<T>
Reshape
(Int m, Int n, const SparseMatrix<T> &A)
-
void
Reshape
(Int m, Int n, const DistSparseMatrix<T> &A, DistSparseMatrix<T> &ASub)
-
DistSparseMatrix<T>
Reshape
(Int m, Int n, const DistSparseMatrix<T> &A)
C API
Integer
-
ElError
ElReshape_i
(ElInt m, ElInt n, ElConstMatrix_i A, ElMatrix_i B)
-
ElError
ElReshapeDist_i
(ElInt m, ElInt n, ElConstDistMatrix_i A, ElDistMatrix_i B)
-
ElError
ElReshapeSparse_i
(ElInt m, ElInt n, ElConstSparseMatrix_i A, ElSparseMatrix_i B)
-
ElError
ElReshapeDistSparse_i
(ElInt m, ElInt n, ElConstDistSparseMatrix_i A, ElDistSparseMatrix_i B)
Single-precision
-
ElError
ElReshape_s
(ElInt m, ElInt n, ElConstMatrix_s A, ElMatrix_s B)
-
ElError
ElReshapeDist_s
(ElInt m, ElInt n, ElConstDistMatrix_s A, ElDistMatrix_s B)
-
ElError
ElReshapeSparse_s
(ElInt m, ElInt n, ElConstSparseMatrix_s A, ElSparseMatrix_s B)
-
ElError
ElReshapeDistSparse_s
(ElInt m, ElInt n, ElConstDistSparseMatrix_s A, ElDistSparseMatrix_s B)
Double-precision
-
ElError
ElReshape_d
(ElInt m, ElInt n, ElConstMatrix_d A, ElMatrix_d B)
-
ElError
ElReshapeDist_d
(ElInt m, ElInt n, ElConstDistMatrix_d A, ElDistMatrix_d B)
-
ElError
ElReshapeSparse_d
(ElInt m, ElInt n, ElConstSparseMatrix_d A, ElSparseMatrix_d B)
-
ElError
ElReshapeDistSparse_d
(ElInt m, ElInt n, ElConstDistSparseMatrix_d A, ElDistSparseMatrix_d B)
Single-precision complex
-
ElError
ElReshape_c
(ElInt m, ElInt n, ElConstMatrix_c A, ElMatrix_c B)
-
ElError
ElReshapeDist_c
(ElInt m, ElInt n, ElConstDistMatrix_c A, ElDistMatrix_c B)
-
ElError
ElReshapeSparse_c
(ElInt m, ElInt n, ElConstSparseMatrix_c A, ElSparseMatrix_c B)
-
ElError
ElReshapeDistSparse_c
(ElInt m, ElInt n, ElConstDistSparseMatrix_c A, ElDistSparseMatrix_c B)
Double-precision complex
-
ElError
ElReshape_z
(ElInt m, ElInt n, ElConstMatrix_z A, ElMatrix_z B)
-
ElError
ElReshapeDist_z
(ElInt m, ElInt n, ElConstDistMatrix_z A, ElDistMatrix_z B)
-
ElError
ElReshapeSparse_z
(ElInt m, ElInt n, ElConstSparseMatrix_z A, ElSparseMatrix_z B)
-
ElError
ElReshapeDistSparse_z
(ElInt m, ElInt n, ElConstDistSparseMatrix_z A, ElDistSparseMatrix_z B)