Partager via


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

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

Initializes a new instance of the SparseVectorData class.

Properties

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

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

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

Applies to