Skip to main content

MatTransposeVec

Trait MatTransposeVec 

Source
pub trait MatTransposeVec<V> {
    // Required method
    fn mat_transpose_vec(&self, x: &V) -> V;
}
Expand description

Transposed matrix-vector product y = Aᵀ x. Lets least-squares solvers form Jᵀ r without materializing Jᵀ.

§Contract

  • Caller must: pass x whose length equals self.nrows(). Backends panic on shape mismatch.
  • Implementor must: return a freshly allocated V of length self.ncols(), with y[j] = Σᵢ A[i, j] · x[i]. The op is a pure function of (self, x) and must agree with MatVec on the implicit transpose.

§Backends

Same backend coverage as MatVec.

Required Methods§

Source

fn mat_transpose_vec(&self, x: &V) -> V

Compute Aᵀ x, allocating a fresh V of length self.ncols().

Implementors§