Creates an indexed vector with the specified values and corresponding keys.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<T> Create<T, K>(
IList<T> values,
IList<K> keys,
ArrayMutability mutability = ArrayMutability.Immutable
)
Public Shared Function Create(Of T, K) (
values As IList(Of T),
keys As IList(Of K),
Optional mutability As ArrayMutability = ArrayMutability.Immutable
) As Vector(Of T)
public:
generic<typename T, typename K>
static Vector<T>^ Create(
IList<T>^ values,
IList<K>^ keys,
ArrayMutability mutability = ArrayMutability::Immutable
)
static member Create :
values : IList<'T> *
keys : IList<'K> *
?mutability : ArrayMutability
(* Defaults:
let _mutability = defaultArg mutability ArrayMutability.Immutable
*)
-> Vector<'T>
Parameters
- values
- Type: System.Collections.GenericIListT
A list of values. - keys
- Type: System.Collections.GenericIListK
A list of keys. - mutability (Optional)
- Type: Extreme.MathematicsArrayMutability
Specifies how the vector's values may be changed.
The default is immutable.
Type Parameters
- T
- The element type of the vector.
- K
- The type of the keys.
Return Value
Type:
VectorTA vector with elements specified by
values
and an index defined by
keys.
Reference