Attempts to convert the object to a vector with the specified element type.
Namespace:
Extreme.Data.Matlab
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public virtual Vector<T> AsVector<T>(
bool strict = true
)
Public Overridable Function AsVector(Of T) (
Optional strict As Boolean = true
) As Vector(Of T)
public:
generic<typename T>
virtual Vector<T>^ AsVector(
bool strict = true
)
abstract AsVector :
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> Vector<'T>
override AsVector :
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> Vector<'T>
Parameters
- strict (Optional)
- Type: SystemBoolean
Type Parameters
- T
- The element type of the vector
Return Value
Type:
VectorTThe new vector if successful; otherwise
.
Implements
IDataObjectTObjectAsVectorT(Boolean)
The conversion may fail for two reasons. Either the object
is not a vector, matrix, or one-column data frame,
or the element type of the vector cannot be cast
to T.
Reference