Click or drag to resize

DoubleComplexSparseVector Class

Class DoubleComplexSparseVector encapsulates a general sparse vector.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreSparseVectorDataDoubleComplex
    CenterSpace.NMath.CoreDoubleComplexSparseVector

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class DoubleComplexSparseVector : SparseVectorData<DoubleComplex>

The DoubleComplexSparseVector type exposes the following members.

Constructors
 NameDescription
Public methodDoubleComplexSparseVector(Int32) Constructs a DoubleComplexSparseVector instance sized for the given number of non-zero entries. The resulting instance will not be useable until the
C#
Entries
and
C#
Indices
arrays are populated.
Public methodDoubleComplexSparseVector(DoubleComplex, IndexArray) Constructs a DoubleComplexSparseVector instance from the given data.
Public methodDoubleComplexSparseVector(DoubleComplexVector, IndexArray) Constructs a DoubleComplexSparseVector instance from the given data.
Public methodDoubleComplexSparseVector(DoubleComplex, IndexArray, Int32) Constructs a DoubleComplexSparseVector instance from the given data.
Public methodDoubleComplexSparseVector(DoubleComplexVector, IndexArray, Int32) Constructs a DoubleComplexSparseVector instance from the given data.
Public methodDoubleComplexSparseVector(DoubleComplex, IndexArray, Int32, Boolean) Constructs a DoubleComplexSparseVector instance from the given data.
Top
Properties
 NameDescription
Public propertyEntries Gets and set the non-zero entries.
(Inherited from SparseVectorDataT)
Public propertyIndices Gets and sets the non-zero entry's Indices.
(Inherited from SparseVectorDataT)
Public propertyItem Gets and sets the value at the given index.
(Inherited from SparseVectorDataT)
Public propertyNumberNonZero Gets an sets the number of non-zero elements.
(Inherited from SparseVectorDataT)
Top
Methods
 NameDescription
Public methodStatic memberAdd(DoubleComplexSparseVector, DoubleComplexVector) Adds a dense vector to a sparse vector. The result is a dense vector.
Public methodStatic memberAdd(DoubleComplexVector, DoubleComplexSparseVector) Adds a dense vector to a sparse vector. The result is a dense vector.
Public methodClone Creates a deep copy of this sparse vector.
(Overrides SparseVectorDataTClone)
Public methodStatic memberDivide Divides a sparse vector by a scalar.
Public methodEquals(Object) Equality of sparse vectors. Sparse vectors objects are equal if they have the same nonzero elements.
(Overrides SparseVectorDataTEquals(Object))
Public methodEquals(SparseVectorDataT) Equality of sparse vector data. Sparse vector data objects are equal if they have the same nonzero elements.
(Inherited from SparseVectorDataT)
Public methodGetHashCode Gets the hash code for this instance.
(Overrides SparseVectorDataTGetHashCode)
Public methodStatic memberMultiply(DoubleComplex, DoubleComplexSparseVector) Multiplies a sparse vector by a scalar.
Public methodStatic memberMultiply(DoubleComplexSparseVector, DoubleComplex) Multiplies a sparse vector by a scalar.
Public methodScale Scales each element in the sparse vector by the specified value.
Protected methodSetData Sets the sparse vector data of self to the given values.
(Inherited from SparseVectorDataT)
Public methodStatic memberSubtract Subtracts a sparse vector from a dense vector. The result is a dense vector.
Public methodToString String representation.
(Overrides ObjectToString)
Public methodTwoNorm Computes the Euclidean norm of the element of self.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(DoubleComplexSparseVector, DoubleComplexVector) Adds a dense vector to a sparse vector. The result is a dense vector.
Public operatorStatic memberAddition(DoubleComplexVector, DoubleComplexSparseVector) Adds a dense vector to a sparse vector. The result is a dense vector.
Public operatorStatic memberDivision(DoubleComplexSparseVector, DoubleComplex) Divides a sparse vector by a scalar.
Public operatorStatic memberMultiply(DoubleComplex, DoubleComplexSparseVector) Multiplies a sparse vector by a scalar.
Public operatorStatic memberMultiply(DoubleComplexSparseVector, DoubleComplex) Multiplies a sparse vector by a scalar.
Public operatorStatic memberSubtraction(DoubleComplexVector, DoubleComplexSparseVector) Subtracts a sparse vector from a dense vector. The result is a dense vector.
Top
Fields
 NameDescription
Protected fieldentries_ Non-zero entries of the sparse vector.
(Inherited from SparseVectorDataT)
Protected fieldindices_ Indices of the non-zero entries such that the ith non-zero entry has index indices_[i].
(Inherited from SparseVectorDataT)
Protected fieldnumNonZero_ Number of non-zero elements in the sparse vector.
(Inherited from SparseVectorDataT)
Top
Remarks
Only nonzero values are stored.
See Also