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