DECOMPOSITION
expm
Compute the matrix exponential of an array.
Example of usage
Factorise a labelled industrial sensor calibration matrix and verify reconstruction.
Usage / limitations
+Use when: Model continuous-time linear system transitions.
−Limitations: Matrix shape, symmetry, conditioning and numerical precision constrain validity.
Mathematical formula
eᴬ = Σ Aᵏ / k!.
Sample dataShow
{
"variable": "measurement_matrix",
"domain": "Industrial sensor calibration",
"feature_names": [
"temperature_c",
"vibration_mm_s"
],
"matrix": [
[
1.0,
0.0
],
[
0.0,
2.0
]
]
}
Code example (Python)
# DataLens.ai sample data — industrial sensor calibration
import numpy as np
A = np.diag([1., 2.])
# DataLens.ai example
# Factorise the named two- or three-sensor calibration matrix.
from scipy.linalg import expm
result = expm(A)
assert np.allclose(result, np.diag(np.exp([1., 2.])))
print("Expected output verified")
# DataLens.ai example
# Factorise the named two- or three-sensor calibration matrix.
from scipy.linalg import expm
result = expm(A)
assert np.allclose(result, np.diag(np.exp([1., 2.])))
print("Expected output verified")