Public Tensor Linear Algebra #
User-facing matrix factorizations and solves on the canonical tensor type.
Instances For
Tensor buffers and the active basis width of the Gram-Schmidt sweep.
Number of populated basis columns; remaining columns stay zero.
Reduced basis matrix.
Coefficients for the source columns processed so far.
Instances For
Reduced QR by classical Gram-Schmidt, sweeping source columns left to right.
The basis and coefficient buffers keep their final tensor shapes; count selects the populated
basis columns. A dependent column does not consume a basis slot, so later independent columns can
still enter. Each dot product and projection sums only active entries in their original order,
starting from zero. Unused basis columns therefore never introduce spurious 0 * NaN terms.
Instances For
Compute a reduced QR factorization with classical Gram-Schmidt.
The result uses the NumPy/PyTorch reduced shapes
q : Tensor α [m, min m n] and r : Tensor α [min m n, n].
For tall and square inputs, this is the theorem-backed specification computation with its dimensions
presented in reduced form. For wide inputs, linearly dependent source columns do not consume a
basis column, so a later independent column can still enter the reduced basis. Any unused trailing
basis columns are zero.
Instances For
Compute the lower-triangular Cholesky factor candidate of a square matrix.
For symmetric inputs with positive executable pivots, the specification layer proves
A = L @ L.transpose. Inputs outside that domain follow the scalar backend's arithmetic behavior;
for example, Float produces NaN after a negative square root.
Instances For
Solve (kernel + regularization * I) x = target through the Cholesky path.
The operation is intended for symmetric positive-semidefinite kernels and positive regularization.
Its executable implementation is available across scalar backends supporting Context.