set_entries()

set_entries()#

QuadraticOperator.set_entries(entries)[source]#

Set the internal representation \(\tilde{\H}\) of the operator matrix \(\Hhat\).

Parameters:
entries(r, r^2) or (r, r(r+1)/2) or (r, r, r) ndarray

Operator matrix \(\Hhat\), its compressed representation \(\tilde{\H}\), or the equivalent symmetric tensor.