{ } Raw JSON

bundles / scipy latest / scipy / linalg / _matfuncs / fractional_matrix_power

function

scipy.linalg._matfuncs:fractional_matrix_power

source: /scipy/linalg/_matfuncs.py :101

Signature

def   fractional_matrix_power ( A t )

Summary

Compute the fractional power of a matrix.

Extended Summary

Proceeds according to the discussion in section (6) of [1].

The documentation is written assuming array arguments are of specified "core" shapes. However, array argument(s) of this function may have additional "batch" dimensions prepended to the core shape. In this case, the array is treated as a batch of lower-dimensional slices; see linalg_batch for details. Note that calls with zero-size batches are unsupported and will raise a ValueError.

Parameters

A : (N, N) array_like

Matrix whose fractional power to evaluate.

t : float

Fractional power.

Returns

X : (N, N) array_like

The fractional power of the matrix.

Examples

import numpy as np
from scipy.linalg import fractional_matrix_power
a = np.array([[1.0, 3.0], [1.0, 4.0]])
b = fractional_matrix_power(a, 0.5)
b
np.dot(b, b)      # Verify square root

Aliases

  • scipy.linalg.fractional_matrix_power