Click or drag to resize
Accord.NET (logo)

SparseT Constructor (Int32, T)

Creates a sparse vector from a vector of indices and a vector of values occuring at those indices.

Namespace:  Accord.Math
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public Sparse(
	int[] indices,
	T[] values
)
Request Example View Source

Parameters

indices
Type: SystemInt32
The indices for non-zero entries.
values
Type: T
The non-zero values happening at each index.
See Also