expm_frechet(A, E, method=None, compute_expm=True, check_finite=True)
This section describes the available implementations that can be selected by the method
parameter. The default method is SPS.
Method blockEnlarge is a naive algorithm.
Method SPS is Scaling-Pade-Squaring . It is a sophisticated implementation which should take only about 3/8 as much time as the naive implementation. The asymptotics are the same.
Matrix of which to take the matrix exponential.
Matrix direction in which to take the Frechet derivative.
Choice of algorithm. Should be one of
:None:None:`SPS`
(default)
:None:None:`blockEnlarge`
Whether to compute also :None:None:`expm_A`
in addition to :None:None:`expm_frechet_AE`
. Default is True.
Whether to check that the input matrix contains only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs.
Matrix exponential of A.
Frechet derivative of the matrix exponential of A in the direction E.
Frechet derivative of the matrix exponential of A in the direction E.
expm
Compute the exponential of a matrix.
>>> import scipy.linalg
... rng = np.random.default_rng()
... A = rng.standard_normal((3, 3))
... E = rng.standard_normal((3, 3))
... expm_A, expm_frechet_AE = scipy.linalg.expm_frechet(A, E)
... expm_A.shape, expm_frechet_AE.shape ((3, 3), (3, 3))
>>> import scipy.linalg
... rng = np.random.default_rng()
... A = rng.standard_normal((3, 3))
... E = rng.standard_normal((3, 3))
... expm_A, expm_frechet_AE = scipy.linalg.expm_frechet(A, E)
... M = np.zeros((6, 6))
... M[:3, :3] = A; M[:3, 3:] = E; M[3:, 3:] = A
... expm_M = scipy.linalg.expm(M)
... np.allclose(expm_A, expm_M[:3, :3]) True
>>> np.allclose(expm_frechet_AE, expm_M[:3, 3:]) TrueSee :
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.linalg._expm_frechet.expm_cond
scipy.linalg._expm_frechet.expm_frechet_kronform
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them