Creates an indexed vector from a dictionary.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<T> Create<T, K>(
IDictionary<K, T> dictionary,
IList<K> index
)
Public Shared Function Create(Of T, K) (
dictionary As IDictionary(Of K, T),
index As IList(Of K)
) As Vector(Of T)
public:
generic<typename T, typename K>
static Vector<T>^ Create(
IDictionary<K, T>^ dictionary,
IList<K>^ index
)
static member Create :
dictionary : IDictionary<'K, 'T> *
index : IList<'K> -> Vector<'T>
Parameters
- dictionary
- Type: System.Collections.GenericIDictionaryK, T
A dictionary. - index
- Type: System.Collections.GenericIListK
An index.
Type Parameters
- T
- The element type of the vector.
- K
- The type of the keys in the dictionary.
Return Value
Type:
VectorTAn indexed vector with key values of type
K.
If any of the keys in index are not found
in dictionary, a missing value is inserted.
Reference