Język

SparseVectorData Class

Definition

Represents a sparse vector data, which is a list of indices and a list of corresponding values, both of the same length.

public class SparseVectorData
type SparseVectorData = class
Public Class SparseVectorData
Inheritance
SparseVectorData

Constructors

Name Description
SparseVectorData(List<Int64>, ReadOnlyMemory<Single>)

Initializes a new instance of the SparseVectorData class.

Properties

Name Description
Indices

The indices of the sparse data.

Values

The corresponding values of the sparse data, which must be the same length as the indices.

Methods

Name Description
CreateSparseVectorData(List<Int64>, ReadOnlyMemory<Single>)

Creates a new instance of the SparseVectorData class with the specified indices and values.

Applies to