Data Frame<R, C>.To Matrix<T> Method
Converts the data frame to a matrix with elements of the specified type.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A matrix
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public virtual Matrix<T> ToMatrix<T>(
bool skipMismatchedColumns = true,
bool strict = false
)
Parameters
Type Parameters
- T
- The element type of the matrix.
Return Value
Matrix<T>A matrix
Exceptions
Invalid | The element type of one or more columns cannot be converted to T. |