Float |
The FloatSparseVector type exposes the following members.
| Name | Description | |
|---|---|---|
| FloatSparseVector(Int32) |
Constructs a FloatSparseVector instance sized for the given number
of non-zero entries. The resulting instance will not be useable until
the C# Entries C# Indices | |
| FloatSparseVector(FloatVector, IndexArray) | Constructs a FloatSparseVector instance from the given data. | |
| FloatSparseVector(Single, IndexArray) | Constructs a FloatSparseVector instance from the given data. | |
| FloatSparseVector(FloatVector, IndexArray, Int32) | Constructs a FloatSparseVector instance from the given data. | |
| FloatSparseVector(Single, IndexArray, Int32) | Constructs a FloatSparseVector instance from the given data. | |
| FloatSparseVector(Single, IndexArray, Int32, Boolean) | Constructs a FloatSparseVector 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(FloatSparseVector, FloatVector) | Adds a dense vector to a sparse vector. The result is a dense vector. | |
| Add(FloatVector, FloatSparseVector) | 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(FloatSparseVector, Single) | Multiplies a sparse vector by a scalar. | |
| Multiply(Single, FloatSparseVector) | 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(FloatSparseVector, FloatVector) | Adds a dense vector to a sparse vector. The result is a dense vector. | |
| Addition(FloatVector, FloatSparseVector) | Adds a dense vector to a sparse vector. The result is a dense vector. | |
| Division(FloatSparseVector, Single) | Divides a sparse vector by a scalar. | |
| Multiply(FloatSparseVector, Single) | Multiplies a sparse vector by a scalar. | |
| Multiply(Single, FloatSparseVector) | Multiplies a sparse vector by a scalar. | |
| Subtraction(FloatVector, FloatSparseVector) | 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) |