Creates an indexed vector of the specified length with the specified index.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<T> Create<T, K>(
int length,
Index<K> index
)
Public Shared Function Create(Of T, K) (
length As Integer,
index As Index(Of K)
) As Vector(Of T)
public:
generic<typename T, typename K>
static Vector<T>^ Create(
int length,
Index<K>^ index
)
static member Create :
length : int *
index : Index<'K> -> Vector<'T>
Parameters
- length
- Type: SystemInt32
The length of the new vector. - index
- Type: Extreme.DataAnalysisIndexK
An index of values of type K.
Type Parameters
- T
- The element type of the vector.
- K
- The type of the keys of the index.
Return Value
Type:
VectorTA vector of the specified lenght.
Reference