In this article
The interface selects values greater than the lower endpoint and less than or equal to the upper endpoint. Only supporting drivers provide this selection mode. The number of returned eigenvalues depends on the spectrum and requested range, with matching eigenvectors stored by columns. A value-range request is therefore different from a fixed index slice or a fixed feature width. Boundary membership and numerical rounding should remain explicit rather than being repaired by padding or droppin.
A spectral feature pipeline can lose or gain an eigenvalue when it assumes both ends of a requested value interval are inclusive. SciPy eigh uses a documented half-open interval for subset_by_value. That boundary becomes part of the scientific label definition, especially when a neural model is trained on counts or summaries of selected modes.
The scientific interface
The interface selects values greater than the lower endpoint and less than or equal to the upper endpoint. Only supporting drivers provide this selection mode. The number of returned eigenvalues depends on the spectrum and requested range, with matching eigenvectors stored by columns. A value-range request is therefore different from a fixed index slice or a fixed feature width. Boundary membership and numerical rounding should remain explicit rather than being repaired by padding or dropping modes until a downstream model accepts the shape.
Implementation details
Record interval endpoints, inclusion convention and driver with every derived spectral feature. Validate the symmetric or Hermitian problem assumptions separately. Preserve selected eigenvalue-vector association and the actual count before applying any model-input encoding for variable-sized sets. If a fixed width is required, define an explicit representation policy that does not present padding as an additional physical mode. Compare boundary-sensitive cases with an independently known spectrum, and avoid silently widening the interval merely to obtain a desired count. The selected set must remain explainable from the declared scientific question.
A constructed validation case
Use a diagonal test operator with known eigenvalues exactly at both endpoints and inside the interval. Verify lower exclusion, upper inclusion, selected count and vector association under a supported driver. Add a spectrum with no selected modes and one with multiplicity near the boundary. Acceptance requires the documented selection semantics and truthful variable-size representation, not identical eigenvector bases for degenerate eigenspaces or a fixed output count invented by the loader. Preserve the exact operator and interval for future numerical-version comparisons.
Numerical and data limits
This check validates interval selection, not the physical adequacy of the operator or the model’s spectral understanding. Keep those questions separate. A successful eigensolver call becomes useful reference evidence only when its selection boundary and downstream representation remain visible.
Primary references
SciPy linalg.eigh API; SciPy linear algebra guide.
This is a proposed scientific-interface validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the accuracy or performance of a scientific model.
Related reading
Tensor axes in a language model: batch, sequence and hidden width; A GPU inference benchmark you can trust.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.