![]() | Sparse |
[SerializableAttribute] public class SparseVectorData<T> : ICloneable, IEquatable<SparseVectorData<T>>
The SparseVectorDataT type exposes the following members.
Name | Description | |
---|---|---|
![]() | SparseVectorDataT | Constructs an empty SparseVectorData instance. |
![]() | SparseVectorDataT(Int32) | Constructs a SparseVectorData instance with the given capacity. |
![]() | SparseVectorDataT(T, IndexArray) | Constructs a SparseVectorData instance from the given data. |
![]() | SparseVectorDataT(T, IndexArray, Int32) | Constructs a SparseVectorData instance from the given data. |
![]() | SparseVectorDataT(T, IndexArray, Int32, Boolean) | Constructs a SparseVectorData instance from the given data. |
Name | Description | |
---|---|---|
![]() | Entries | Gets and set the non-zero entries. |
![]() | Indices | Gets and sets the non-zero entry's Indices. |
![]() | Item | Gets and sets the value at the given index. |
![]() | NumberNonZero | Gets an sets the number of non-zero elements. |
Name | Description | |
---|---|---|
![]() | Clone | Creates a deep copy of this sparse vector. |
![]() | Equals(Object) |
Equality of sparse vector data. Sparse vector data objects are equal if they have
the same nonzero elements.
(Overrides ObjectEquals(Object)) |
![]() | Equals(SparseVectorDataT) | Equality of sparse vector data. Sparse vector data objects are equal if they have the same nonzero elements. |
![]() | GetHashCode |
Computes the hash code for self.
(Overrides ObjectGetHashCode) |
![]() | SetData | Sets the sparse vector data of self to the given values. |
Name | Description | |
---|---|---|
![]() ![]() | Equality(SparseVectorDataT, SparseVectorDataT) | Tests for equality of two sparse vector datas. The datas are equal if they have the same nonzero elements. |
![]() ![]() | Inequality(SparseVectorDataT, SparseVectorDataT) | Tests for inequality of two sparse vector datas. The datas are equal if they have the same nonzero elements. |
Name | Description | |
---|---|---|
![]() ![]() | BLOCK_SIZE | Resiziable arrays will be allocated in blocks this size. |
![]() | entries_ | Non-zero entries of the sparse vector. |
![]() | indices_ | Indices of the non-zero entries such that the ith non-zero entry has index indices_[i]. |
![]() | numNonZero_ | Number of non-zero elements in the sparse vector. |