pub fn dense_multiply(a: &Matrix, b: &SparseMat) -> Result<Matrix>Expand description
The dense product a * b of a dense matrix with a sparse one
(igraph_sparsemat_dense_multiply).
ยงErrors
If a.ncol() != b.nrow().
use igraph::{linalg::{SparseMat, dense_multiply}, prelude::*};
let a = Matrix::from_rows(&[[1.0, 2.0]]).unwrap();
let b = SparseMat::eye(2, 3.0, true).unwrap();
assert_eq!(dense_multiply(&a, &b).unwrap().to_rows(), vec![vec![3.0, 6.0]]);