Returns the matrix raised to the power n
for square matrices.
For batch of matrices, each individual matrix is raised to the power n
.
If n
is negative, then the inverse of the matrix (if invertible) is
raised to the power n
. For a batch of matrices, the batched inverse
(if invertible) is raised to the power n
. If n
is 0, then an identity matrix
is returned.