Click or drag to resize
Accord.NET (logo)

SparseFromDictionary Method

Creates a sparse vector from a dictionary mapping indices to values.

Namespace:  Accord.Math
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public static Sparse<double> FromDictionary(
	IDictionary<int, int> dictionary
)
Request Example View Source

Parameters

dictionary
Type: System.Collections.GenericIDictionaryInt32, Int32

Return Value

Type: SparseDouble
See Also