DECOMPOSITION
eigh
Solve a standard or generalized eigenvalue problem for a complex.
Example of usage
Factorise a labelled industrial sensor calibration matrix and verify reconstruction.
Usage / limitations
+Use when: Diagonalise symmetric sensor-correlation matrices.
−Limitations: Matrix shape, symmetry, conditioning and numerical precision constrain validity.
Mathematical formula
Av = λv, for symmetric A.
Sample dataShow
{
"variable": "measurement_matrix",
"domain": "Industrial sensor calibration",
"feature_names": [
"temperature_c",
"vibration_mm_s"
],
"matrix": [
[
3.0,
1.0
],
[
1.0,
3.0
]
]
}
Code example (Python)
# DataLens.ai sample data — industrial sensor calibration
import numpy as np
A = np.array([[3., 1.], [1., 3.]])
# DataLens.ai example
# Factorise the named two- or three-sensor calibration matrix.
from scipy.linalg import eigh
values, vectors = eigh(A)
assert np.allclose(A @ vectors, vectors @ np.diag(values))
print("Expected output verified")
# DataLens.ai example
# Factorise the named two- or three-sensor calibration matrix.
from scipy.linalg import eigh
values, vectors = eigh(A)
assert np.allclose(A @ vectors, vectors @ np.diag(values))
print("Expected output verified")