xlinalg
Please wrap xlinalg
properly so that the argument can accept UniTensor.
For example, for xlinalg.Svd_truncate
, I can see them in pyuni10.cytnx.cytnx_extension_c.xlinalg
Help on built-in function Svd_truncate in module pyuni10.cytnx.cytnx_extension_c.xlinalg:
Svd_truncate(...) method of builtins.PyCapsule instance
Svd_truncate(Tin: pyuni10.cytnx.cytnx_extension_c.CyTensor, keepdim: int, is_U: bool = True, is_vT: bool = True) -> List[pyuni10.cytnx.cytnx_extension_c.CyTensor]
but it will only take CyTensor as argument.
We need to wrap it so that one can use pyuni10.xlinalg.Svd_truncate
and it takes pyuni10.UniTensor
as argument.