MatlabDataObject.AsMatrix<T> Method

Attempts to convert the object to a matrix with the specified element type.

Definition

Namespace: Extreme.Data.Matlab
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
C#
public virtual Matrix<T> AsMatrix<T>(
	bool strict = true
)

Parameters

strict  Boolean  (Optional)
Specifies whether the element type should be matched exactly (true), or whether conversions are allowed (false).

Type Parameters

T
The element type of the matrix

Return Value

Matrix<T>
The new matrix if successful; otherwise null.

Implements

IDataObject<TObject>.AsMatrix<T>(Boolean)

Remarks

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.

See Also