Double |
The DoubleSparseVector type exposes the following members.
Name | Description | |
---|---|---|
DoubleSparseVector(Int32) |
Constructs a DoubleSparseVector instance sized for the given number
of non-zero entries. The resulting instance will not be useable until
the C# Entries C# Indices | |
DoubleSparseVector(Double, IndexArray) | Constructs a DoubleSparseVector instance from the given data. | |
DoubleSparseVector(DoubleVector, IndexArray) | Constructs a DoubleSparseVector instance from the given data. | |
DoubleSparseVector(Double, IndexArray, Int32) | Constructs a DoubleSparseVector instance from the given data. | |
DoubleSparseVector(DoubleVector, IndexArray, Int32) | Constructs a DoubleSparseVector instance from the given data. | |
DoubleSparseVector(Double, IndexArray, Int32, Boolean) | Constructs a DoubleSparseVector instance from the given data. |
Name | Description | |
---|---|---|
Entries |
Gets and set the non-zero entries.
(Inherited from SparseVectorDataT) | |
Indices |
Gets and sets the non-zero entry's Indices.
(Inherited from SparseVectorDataT) | |
Item |
Gets and sets the value at the given index.
(Inherited from SparseVectorDataT) | |
NumberNonZero |
Gets an sets the number of non-zero elements.
(Inherited from SparseVectorDataT) |
Name | Description | |
---|---|---|
Add(DoubleSparseVector, DoubleVector) | Adds a dense vector to a sparse vector. The result is a dense vector. | |
Add(DoubleVector, DoubleSparseVector) | Adds a dense vector to a sparse vector. The result is a dense vector. | |
Clone |
Creates a deep copy of this sparse vector.
(Overrides SparseVectorDataTClone) | |
Divide | Divides a sparse vector by a scalar. | |
Equals(Object) |
Equality of sparse vectors. Sparse vectors objects are equal if they have
the same nonzero elements.
(Overrides SparseVectorDataTEquals(Object)) | |
Equals(SparseVectorDataT) |
Equality of sparse vector data. Sparse vector data objects are equal if they have
the same nonzero elements.
(Inherited from SparseVectorDataT) | |
GetHashCode |
Gets the hash code for this instance.
(Overrides SparseVectorDataTGetHashCode) | |
Multiply(Double, DoubleSparseVector) | Multiplies a sparse vector by a scalar. | |
Multiply(DoubleSparseVector, Double) | Multiplies a sparse vector by a scalar. | |
Scale | Scales each element in the sparse vector by the specified value. | |
SetData |
Sets the sparse vector data of self to the given values.
(Inherited from SparseVectorDataT) | |
Subtract | Subtracts a sparse vector from a dense vector. The result is a dense vector. | |
ToString |
String representation.
(Overrides ObjectToString) | |
ToString(String) | String representation with desired numeric formatting. | |
TwoNorm | Computes the Euclidean norm of the element of self. |
Name | Description | |
---|---|---|
Addition(DoubleSparseVector, DoubleVector) | Adds a dense vector to a sparse vector. The result is a dense vector. | |
Addition(DoubleVector, DoubleSparseVector) | Adds a dense vector to a sparse vector. The result is a dense vector. | |
Division(DoubleSparseVector, Double) | Divides a sparse vector by a scalar. | |
Multiply(Double, DoubleSparseVector) | Multiplies a sparse vector by a scalar. | |
Multiply(DoubleSparseVector, Double) | Multiplies a sparse vector by a scalar. | |
Subtraction(DoubleVector, DoubleSparseVector) | Subtracts a sparse vector from a dense vector. The result is a dense vector. |
Name | Description | |
---|---|---|
entries_ |
Non-zero entries of the sparse vector.
(Inherited from SparseVectorDataT) | |
indices_ |
Indices of the non-zero entries such that the ith non-zero entry
has index indices_[i].
(Inherited from SparseVectorDataT) | |
numNonZero_ |
Number of non-zero elements in the sparse vector.
(Inherited from SparseVectorDataT) |