mindspore.ops.logdet
- mindspore.ops.logdet(input)[source]
Calculate log determinant of one or a batch of square matrices.
- Parameters
input (Tensor) – The input tensor of shape
where means batch dimensions.- Returns
Tensor
- Supported Platforms:
CPU
Examples
>>> import mindspore >>> a = mindspore.tensor([[[8., 9.], [1., 2.]], [[5., 6.], [3., 4.]]]) >>> mindspore.ops.logdet(a) Tensor(shape=[2], dtype=Float32, value= [ 1.94591010e+00, 6.93146825e-01])