Click or drag to resize

SparseConstraintCoefficients Class

Class implementing the ILinearConstraintCoefficients for sparse linear constraint coefficients. Only the non-zero coefficients are stored.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreSparseConstraintCoefficients

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class SparseConstraintCoefficients : ILinearConstraintCoefficients, 
	ICloneable, IEquatable<ILinearConstraintCoefficients>

The SparseConstraintCoefficients type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyItem
Gets the coefficient value at the specified index. returns 0.0 on indices not listed in NonzeroIndices
Public propertyNumberNonzero
Gets the number of non-zero coefficients.
Public propertyNumberOfCoefficients
The total length of the coefficient vector represented by self. Note that this is not the number of non-zero coefficients, but the total number of coefficients.
Top
Methods
  NameDescription
Public methodAsDoubleVector
Method to convert self to a dense vector.
Public methodClone
Creates a deep copy of self.
Public methodDotProduct
Function for forming the dot product of self with another vector.
Public methodEquals
Determines if two SparseConstraintCoefficient objects are equal.
Public methodNonzeroIndices
Enumerator over the indices of the non-zero coefficients.
Top
See Also