matvec_to_array

  • full name: tenpy.tools.math.matvec_to_array

  • parent module: tenpy.tools.math

  • type: function

tenpy.tools.math.matvec_to_array(H)[source]

transform an linear operator with a matvec method into a dense numpy array.

Parameters
Hlinear operator

should have shape, dtype attributes and a matvec method.

Returns
H_densendarray, shape (H.dim, H.dim)

a dense array version of H.