Documentation


MQuadExpr.getValue()

getValue ( )

Compute the value of a quadratic matrix expression using the current solution.

Return value:

Value of expression (scalar).

Example usage:

  qexpr = x @ A @ x
  qexpr.getValue()