latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.linalg
Common linear algebra operations. See Linear algebra (tensorplay.linalg) for some common numerical edge-cases.
Matrix Properties
|
|
linalg_diagonal(A, *, offset=0, dim1=-2, dim2=-1) -> Tensor |
|
Computes the numerical rank of each matrix in |
Decompositions
|
|
|
|
Solvers
|
|
|
|
Inverses
Moore-Penrose pseudo-inverse. |
Matrix Functions
Square matrix exponential via the degree-13 Pade approximant with scaling and squaring: |
|
Matrix square root via the Denman-Beavers fixed-point iteration (converges for matrices with no eigenvalues on the closed negative real axis). |
|
Matrix Products
Dot product along dim with the first argument conjugated for complex inputs. |
|
Conjugating dot product over 1-D operands: sum(conj(self) * other). |
|
Chained matrix product evaluated in the parenthesization that minimizes the scalar multiplication count (matrix-chain dynamic program). |
|
|
Tensor Operations
Inverse of |
|
Solves the tensor equation |
Misc
Experimental Functions
|
|
|
|
|
|
|
Result Types
Solvers and decompositions that return several tensors package them in the
named tuples below; the _ex variants report failures through an info
field instead of raising.
Raised when a decomposition or solve fails on a numerically invalid input. |
|
Help improve this page
Found an error, an unclear step, or a missing example?

