English
Languages
English
Shortcuts



QuadraticExpression.to_array

QuadraticExpression.to_array(symmetric=False)[source]

Returns the coefficients of the quadratic expression as array.

Parameters

symmetric (bool) – Determines whether the output is in a symmetric form or not.

Return type

ndarray

Returns

An array with the coefficients corresponding to the quadratic expression.