Creates an indexed vector from a dictionary.
Namespace: Extreme.MathematicsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
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.
Numerical Libraries
Supported in: 6.0
Reference