mindspore.ops.MatrixExp

class mindspore.ops.MatrixExp[source]

Computes the matrix exponential of a square matrix. Supports batched inputs.

Refer to mindspore.ops.matrix_exp() for more details.

Supported Platforms:

CPU

Examples

>>> matrix_exp = ops.MatrixExp()
>>> x = Tensor(np.array([[1, 2], [0, 1]]), mindspore.float32)
>>> output = matrix_exp(x)
>>> print(output)
[[2.7182817 5.436563 ]
[0.        2.7182817]]