Skip to main content

symmetric_product

Function symmetric_product 

Source
pub fn symmetric_product<B: Backend, T: LinalgFloat>(
    a: &Array<B, T>,
    c: &Array<B, T>,
    alpha: f64,
    beta: f64,
    symmetrize_output: bool,
) -> Array<B, T>
Expand description

alpha a a^T + beta c for each a ([..., m, n]) and symmetric c ([..., m, m]), as lax.linalg.symmetric_product (with symmetrize_output, the upper triangle is replaced by the transpose of the lower one; JAX guarantees only the lower triangle otherwise, which cuBLAS’s syrk computes on GPU). Real matrices only, not differentiable, as in JAX.

§Panics

Panics if the shapes do not match.