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:
H (linear operator) – should have shape, dtype attributes and a matvec method.
- Returns:
H_dense – a dense array version of H.
- Return type:
ndarray, shape
(H.dim, H.dim)