The SparseConstraintCoefficients type exposes the following members.

Constructors

  NameDescription
SparseConstraintCoefficientsOverloaded.

Methods

  NameDescription
AsDoubleVector
Method to convert self to a dense vector.
Clone
Creates a deep copy of self.
DotProduct
Function for forming the dot product of self with another vector.
EqualsOverloaded.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
NonzeroIndices
Enumerator over the indices of the non-zero coefficients.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Item
Gets the coefficient value at the specified index. returns 0.0 on indices not listed in NonzeroIndices
NumberNonzero
Gets the number of non-zero coefficients.
NumberOfCoefficients
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.

See Also