Dense Matrix<T>.Reshape Method
Returns a matrix that contains the same elements
listed columnwise.
Definition
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A matrix that uses the same storage as the vector.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public override Matrix<T> Reshape(
int rowCount,
int columnCount
)
Parameters
- rowCount Int32
- The number of rows of the new matrix.
- columnCount Int32
- The number of columns of the new matrix.
Return Value
Matrix<T>A matrix that uses the same storage as the vector.
Exceptions
Invalid | The matrix cannot be reshaped. |
Dimension | The total number of elements in the new matrix does not equal the number of elements in this matrix. |