cratepy.tensor.matrixoperations.matrix_root

matrix_root(matrix, p)[source]

Compute p-th root of general nonsymmetric square matrix.

Parameters:
  • matrix (numpy.ndarray (2d)) – Square matrix.

  • p (float) – Factor which defines the p-th root of square matrix.

Returns:

matrix_proot – p-th root of square matrix.

Return type:

numpy.ndarray (2d)