mm.math.sqrtm¶
- math.sqrtm(dtype=None)¶
The matrix square root.
- Parameters:
tensor (
ndarray
[Tuple
[int
,...
],Union
[TypeVar
(R
,float16
,float32
,float64
),TypeVar
(C
,complex64
,complex128
),TypeVar
(Z
,int16
,int32
,int64
),TypeVar
(N
,uint16
,uint32
,uint64
)]]) – The tensor to take the matrix square root of.dtype – The
dtype
of the output tensor. IfNone
, the output is of typemath.complex128
.
- Return type:
ndarray
[Tuple
[int
,...
],Union
[TypeVar
(R
,float16
,float32
,float64
),TypeVar
(C
,complex64
,complex128
),TypeVar
(Z
,int16
,int32
,int64
),TypeVar
(N
,uint16
,uint32
,uint64
)]]- Returns:
The square root of
x
code/api/mrmustard.math.sqrtm
Download Python script
Download Notebook
View on GitHub