Attempts to convert the object to a matrix with the specified element type.
Namespace:
Extreme.Data.Matlab
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public virtual Matrix<T> AsMatrix<T>(
bool strict = true
)
Public Overridable Function AsMatrix(Of T) (
Optional strict As Boolean = true
) As Matrix(Of T)
public:
generic<typename T>
virtual Matrix<T>^ AsMatrix(
bool strict = true
)
abstract AsMatrix :
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> Matrix<'T>
override 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
.
Implements
IDataObjectTObjectAsMatrixT(Boolean)
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