pycauset.eigvals_skew
Compute the top-\(k\) eigenvalues (by magnitude) of a real skew-symmetric matrix.
A real skew-symmetric matrix satisfies \(A = -A^\top\). Its eigenvalues are purely imaginary and come in \(\pm i\lambda\) pairs, with one zero eigenvalue when the dimension is odd.
Parameters
- a: Input square matrix (real, skew-symmetric).
- k: Number of eigenvalues to return.
Returns
- VectorBase: Complex eigenvalues sorted by descending magnitude, of length
min(k, n). Each entry has a negligible real part (machine precision) and an imaginary part of the form \(\pm\lambda\).
Notes
- Uses the native backend when available, otherwise falls back to NumPy's general eigensolver.
- Requesting
k > nreturns at mostneigenvalues. - A dedicated Paige–Van Loan tridiagonalization (the asymptotically faster
\(O(n^2)\)-ish algorithm for skew matrices) is planned but not yet implemented;
the current native path uses the general LAPACK
dgeevsolver.