Datalens.ai
← All algorithms

DECOMPOSITION

eigvalsh

Solves 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: Compute real eigenvalues for symmetric matrices.

−Limitations: Matrix shape, symmetry, conditioning and numerical precision constrain validity.

Mathematical formula

det(A − λI) = 0 for Hermitian 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 example
# Factorise the named two- or three-sensor calibration matrix.
from scipy.linalg import eigvalsh
values = eigvalsh(A)
assert np.allclose(values, [2, 4])
print("Expected output verified")