Skip to main content

Module common

Module common 

Source
Expand description

Shared machinery for fitters.

Every fitter operation is a contraction of a stored matrix with one axis of a column-major tensor. The tensor is addressed as [pre, n, post], where pre is the product of the extents before the target axis and post the product of those after it, so no data movement is needed to bring the target axis to the front.

This module provides the InplaceFitter trait, layout validation for tenferro tensors and views, and the SVD-based least-squares factors.

Traits§

FitScalar
f64 or Complex<f64>, viewable as interleaved f64 storage.
InplaceFitter
Evaluation and fitting along one axis of an N-dimensional tensor, writing into a caller-provided output view.
SvdScalar
Scalars with an SVD through tenferro-linalg.

Functions§

singular_values
Singular values of a contiguous column-major n x m matrix, descending.