Function sprs::kronecker_product

source ·
pub fn kronecker_product<Nin, Nout, I, Iptr>(
    a: CsMatViewI<'_, Nin, I, Iptr>,
    b: CsMatViewI<'_, Nin, I, Iptr>
) -> CsMatI<Nout, I, Iptr>where
    Nin: Clone + Default + Kronecker<Output = Nout>,
    Nout: Clone + Default,
    I: SpIndex,
    Iptr: SpIndex,
Expand description

Compute the Kronecker product between two matrices

The storage order of the product will be based on the first matrix. This method will perform a clone if the two matrices have different storage order

Panics

  • if indices are out of bounds for its type