pub trait FitScalar: GemmScalar {
const REAL_WIDTH: usize;
// Required methods
fn as_f64(s: &[Self]) -> &[f64];
fn as_f64_mut(s: &mut [Self]) -> &mut [f64];
}Expand description
f64 or Complex<f64>, viewable as interleaved f64 storage.
A column-major complex tensor of shape [pre, n, post] is a real tensor
of shape [2 * pre, n, post], so real-matrix contractions apply to it
with pre doubled.
Required Associated Constants§
Sourceconst REAL_WIDTH: usize
const REAL_WIDTH: usize
Number of f64 values per element (1 or 2).
Required Methods§
Sourcefn as_f64_mut(s: &mut [Self]) -> &mut [f64]
fn as_f64_mut(s: &mut [Self]) -> &mut [f64]
Reinterpret mutably as f64 storage.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".