Attempts to convert the object to a matrix with the specified element type.
Namespace:
Extreme.Data
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
Matrix<T> AsMatrix<T>(
bool strict = true
)
Function AsMatrix(Of T) (
Optional strict As Boolean = true
) As Matrix(Of T)
generic<typename T>
Matrix<T>^ AsMatrix(
bool strict = true
)
abstract AsMatrix :
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> Matrix<'T>
Parameters
- strict (Optional)
- Type: SystemBoolean
Specifies whether the element type
should be matched exactly (), or whether
conversions are allowed ().
Type Parameters
- T
- The element type of the matrix
Return Value
Type:
MatrixTThe new matrix if successful; otherwise
.
The conversion may fail for two reasons. Either the object
is not a matrix or vector, or the element type of the matrix
cannot be cast to T.
Reference