Package de.labathome.trustconstr.records
Record Class EqIneqSplit
java.lang.Object
java.lang.Record
de.labathome.trustconstr.records.EqIneqSplit
- Record Components:
eq- equality componentineq- inequality component
Pair of canonical equality and inequality components produced by a
CanonicalConstraint's fun(x)
or jac(x). Mirrors scipy's tuple return shape from
canonical_constraint.py.
For fun(x): eq is nEq x 1, ineq is
nIneq x 1 (column vectors of canonical residuals).
For jac(x): eq is nEq x n, ineq is
nIneq x n (canonical Jacobian blocks).
-
Constructor Summary
ConstructorsConstructorDescriptionEqIneqSplit(Matrix eq, Matrix ineq) Creates an instance of aEqIneqSplitrecord class. -
Method Summary
Modifier and TypeMethodDescriptioneq()Returns the value of theeqrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ineq()Returns the value of theineqrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
eq
Returns the value of theeqrecord component.- Returns:
- the value of the
eqrecord component
-
ineq
Returns the value of theineqrecord component.- Returns:
- the value of the
ineqrecord component
-