Constructs a new dense vector with the specified elements.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DenseVector<T> Create<T>(
T[] values,
bool reuseComponentArray,
ArrayMutability mutability = ArrayMutability.Immutable
)
Public Shared Function Create(Of T) (
values As T(),
reuseComponentArray As Boolean,
Optional mutability As ArrayMutability = ArrayMutability.Immutable
) As DenseVector(Of T)
public:
generic<typename T>
static DenseVector<T>^ Create(
array<T>^ values,
bool reuseComponentArray,
ArrayMutability mutability = ArrayMutability::Immutable
)
static member Create :
values : 'T[] *
reuseComponentArray : bool *
?mutability : ArrayMutability
(* Defaults:
let _mutability = defaultArg mutability ArrayMutability.Immutable
*)
-> DenseVector<'T>
Parameters
- values
- Type: T
An array that contains the elements of the new
DenseVectorT. - reuseComponentArray
- Type: SystemBoolean
If , the array
referenced by values is used directly. Any
changes to the elements of this DenseVectorT
will also affect the original array.If , the elements are
copied from values to a new
array. - mutability (Optional)
- Type: Extreme.MathematicsArrayMutability
Specifies how the vector's values may be changed.
The default is mutable values.
Type Parameters
- T
Return Value
Type:
DenseVectorTA
DenseVectorT.
The length of the new vector is equal to the length of
values.
Reference