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>(
int length,
T[] values,
bool reuseComponentArray,
ArrayMutability mutability
)
Public Shared Function Create(Of T) (
length As Integer,
values As T(),
reuseComponentArray As Boolean,
mutability As ArrayMutability
) As DenseVector(Of T)
public:
generic<typename T>
static DenseVector<T>^ Create(
int length,
array<T>^ values,
bool reuseComponentArray,
ArrayMutability mutability
)
static member Create :
length : int *
values : 'T[] *
reuseComponentArray : bool *
mutability : ArrayMutability -> DenseVector<'T>
Parameters
- length
- Type: SystemInt32
The number of elements in the
new vector. - 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
- 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.
Reference