Constructs a new vector whose elements are at the specified indexes in an array.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static IndexedVector<T> CreateIndexed<T>(
int length,
T[] values,
int[] indexes,
int offset,
int stride,
ArrayMutability mutability
)
Public Shared Function CreateIndexed(Of T) (
length As Integer,
values As T(),
indexes As Integer(),
offset As Integer,
stride As Integer,
mutability As ArrayMutability
) As IndexedVector(Of T)
public:
generic<typename T>
static IndexedVector<T>^ CreateIndexed(
int length,
array<T>^ values,
array<int>^ indexes,
int offset,
int stride,
ArrayMutability mutability
)
static member CreateIndexed :
length : int *
values : 'T[] *
indexes : int[] *
offset : int *
stride : int *
mutability : ArrayMutability -> IndexedVector<'T>
Parameters
- length
- Type: SystemInt32
The length of the vector. - values
- Type: T
An array containing the values for the vector. - indexes
- Type: SystemInt32
An integer array containing the indexes into values
of the elements of the vector. - offset
- Type: SystemInt32
Offset into indexes where the index of the first component
is stored. - stride
- Type: SystemInt32
The increment for the index into indexes. - 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