Converts the data frame to a matrix with elements of the specified type.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual Matrix<T> ToMatrix<T>(
bool skipMismatchedColumns = true,
bool strict = false
)
Public Overridable Function ToMatrix(Of T) (
Optional skipMismatchedColumns As Boolean = true,
Optional strict As Boolean = false
) As Matrix(Of T)
public:
generic<typename T>
virtual Matrix<T>^ ToMatrix(
bool skipMismatchedColumns = true,
bool strict = false
)
abstract ToMatrix :
?skipMismatchedColumns : bool *
?strict : bool
(* Defaults:
let _skipMismatchedColumns = defaultArg skipMismatchedColumns true
let _strict = defaultArg strict false
*)
-> Matrix<'T>
override ToMatrix :
?skipMismatchedColumns : bool *
?strict : bool
(* Defaults:
let _skipMismatchedColumns = defaultArg skipMismatchedColumns true
let _strict = defaultArg strict false
*)
-> Matrix<'T>
Parameters
- skipMismatchedColumns (Optional)
- Type: SystemBoolean
- strict (Optional)
- Type: SystemBoolean
Type Parameters
- T
- The element type of the matrix.
Return Value
Type:
MatrixTA matrix
Exception | Condition |
---|
InvalidCastException | The element type of one or more columns cannot be converted to T. |
Reference