/** Below this dimension the factory path is already sub-millisecond; native * conversion overhead isn't worth it and the well-tested factory path runs. */ export declare const NATIVE_MATRIX_THRESHOLD = 8; /** True for a square `number[][]` of side ≥ NATIVE_MATRIX_THRESHOLD. */ export declare function isLargeNumericSquare(a: unknown): a is number[][]; /** * Determinant via native Float64Array LU: det = parity(P) · ∏ diag(U). * Falls back to `factoryDet` for non-(large numeric square) inputs or any * non-singular native error; a singular matrix correctly yields 0. */ export declare function acceleratedDet(a: unknown, factoryDet: (m: unknown) => T): T; /** * Inverse via native Float64Array LU + forward/back substitution: solve A·xⱼ = eⱼ * for each column. Falls back to `factoryInv` for non-(large numeric square) * inputs; on a singular matrix the native LU throws and we delegate to the * factory, which raises the proper "Cannot calculate inverse, determinant is * zero" error — so behaviour is identical to the factory, just faster. * Verified against numpy: max|inv−numpy| and max|A·inv−I| ~1e-15. */ export declare function acceleratedInv(a: unknown, factoryInv: (m: unknown) => T): T; /** True for a square `number[][]` of any size ≥ 1. */ export declare function isNumericSquare(a: unknown): a is number[][]; /** * Correct eigendecomposition for the public `eigs`. * * The activated mathjs factory `eigs` returns WRONG eigenvalues for *every* * non-symmetric matrix — even trivial upper-triangular ones, whose eigenvalues * are just the diagonal (e.g. [[2,1,0],[0,3,1],[0,0,4]] → [1.27, 3, 4.73]). The * native `@danielsimonjr/mathts-matrix` `eig` (JAMA orthes/hqr2) is correct for * symmetric, non-symmetric, and complex spectra (verified vs numpy), so route all * numeric square matrices through it and emit the factory's `{ values, * eigenvectors }` shape. Non-(numeric square) inputs and any native error fall * back to the factory. */ export declare function correctEigs(a: unknown, options: { eigenvectors?: boolean; } | undefined, factoryEigs: (m: unknown, o?: unknown) => unknown): unknown; //# sourceMappingURL=native-accel.d.ts.map