Constructs a new indexed vector.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static IndexedVector<T> CreateIndexed<T>(
T[] values,
int[] indexes,
ArrayMutability mutability
)
Public Shared Function CreateIndexed(Of T) (
values As T(),
indexes As Integer(),
mutability As ArrayMutability
) As IndexedVector(Of T)
public:
generic<typename T>
static IndexedVector<T>^ CreateIndexed(
array<T>^ values,
array<int>^ indexes,
ArrayMutability mutability
)
static member CreateIndexed :
values : 'T[] *
indexes : int[] *
mutability : ArrayMutability -> IndexedVector<'T>
Parameters
- values
- Type: T
A Double array containing the values for the vector. - indexes
- Type: SystemInt32
An Int32 array containing the indexes into values
of the elements of the vector. - mutability
- Type: Extreme.MathematicsArrayMutability
Specifies how the vector's values may be changed.
The default is mutable values.
Type Parameters
- T
Return Value
Type:
IndexedVectorT
Reference