| SparseConstraintCoefficients(IDictionaryInt32, Double, Int32) Constructor |
Constructs a SparseConstraintCoefficients vector with the given length
and non-zero values.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public SparseConstraintCoefficients(
IDictionary<int, double> nonzeroCoefficients,
int numberOfCoefficients
)
Public Sub New (
nonzeroCoefficients As IDictionary(Of Integer, Double),
numberOfCoefficients As Integer
)
public:
SparseConstraintCoefficients(
IDictionary<int, double>^ nonzeroCoefficients,
int numberOfCoefficients
)
new :
nonzeroCoefficients : IDictionary<int, float> *
numberOfCoefficients : int -> SparseConstraintCoefficients
Parameters
- nonzeroCoefficients IDictionaryInt32, Double
- Map specifying the non-zero coefficients values
and the zero-based index.
- numberOfCoefficients Int32
- Number of coefficients.
See Also