mindspore.ops.logdet

View Source On Gitee
mindspore.ops.logdet(input)[source]

Calculate log determinant of one or a batch of square matrices.

Parameters

input (Tensor) – The input tensor of shape (,N,N) 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])