DECOMPOSITION
eigvals
Compute eigenvalues from an ordinary or generalized eigenvalue problem.
Example of usage
Factorise a labelled industrial sensor calibration matrix and verify reconstruction.
Usage / limitations
+Use when: Measure system eigenvalues without eigenvectors.
−Limitations: Matrix shape, symmetry, conditioning and numerical precision constrain validity.
Mathematical formula
det(A − λI) = 0.
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 eigvals
values = eigvals(A)
assert np.allclose(np.sort(values.real), [2, 4])
print("Expected output verified")
# DataLens.ai example
# Factorise the named two- or three-sensor calibration matrix.
from scipy.linalg import eigvals
values = eigvals(A)
assert np.allclose(np.sort(values.real), [2, 4])
print("Expected output verified")