linalg#
Dense linear-algebra primitives shared by the orthogonalization and SVD sweeps.
truncated_svd, the directional left/right/up_svd and *_svd_pair factorizations
(directions match the core matricization/unfolding conventions), pad_safe_svd (the mask-aware SVD of a
zero-padded matrix – the uniform layer’s replacement for a black-box SVD), the clipped and damped
reciprocal of a spectrum with its pseudo-inverse (filtered_reciprocal,
damped_pseudo_inverse), the pinned completions (pinned_completion, pinned_leading_columns:
orthonormal columns continuing a fixed orthonormal block, tolerance-free), and pad_or_truncate. Pure
array-in, array-out helpers with no T3 semantics.
Functions#
|
Pad and/or truncate an array per axis, using signed |
|
Compute (truncated) singular value decomposition of matrix A. |
|
Compute (truncated) singular value decomposition of 3-tensor left unfolding. |
|
Compute (truncated) singular value decomposition of 3-tensor right unfolding. |
|
Compute (truncated) singular value decomposition of a 3-tensor's up matricization (middle index as rows). |
|
Compute (truncated) singular value decomposition of G0, pushing non-orthogonal remainder onto G1. |
|
Compute (truncated) singular value decomposition of G1, pushing non-orthogonal remainder onto G0. |
|
Compute (truncated) singular value decomposition of G, pushing non-orthogonal remainder onto B. |
|
Compute (truncated) singular value decomposition of B, pushing non-orthogonal remainder onto G. |
|
SVD of a zero-padded matrix whose null-space vectors are forced OFF the padding. |
|
The clipped, optionally damped reciprocal of a spectrum: |
|
The damped pseudo-inverse |
|
The |
|
The pinned truncated SVD: the leading |
|
|