bundles / scipy 1.17.1 / scipy / linalg / _matfuncs / coshm
function
scipy.linalg._matfuncs:coshm
source: /scipy/linalg/_matfuncs.py :687
Signature
def coshm ( A ) Summary
Compute the hyperbolic matrix cosine.
Extended Summary
This routine uses expm to compute the matrix exponentials.
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_likeInput array.
Returns
coshm: (N, N) ndarrayHyperbolic matrix cosine of
A
Examples
import numpy as np from scipy.linalg import tanhm, sinhm, coshm a = np.array([[1.0, 3.0], [1.0, 4.0]]) c = coshm(a)✓
c
✗t = tanhm(a) s = sinhm(a)✓
t - s.dot(np.linalg.inv(c))
✗Aliases
-
scipy.linalg.coshm