Skip to main content

blas_ddot

Function blas_ddot 

Source
pub fn blas_ddot(a: &[f64], b: &[f64]) -> Result<f64>
Expand description

Dot product of two vectors of the same length (igraph_blas_ddot).

Binds igraph_blas_ddot.

use igraph::linalg::blas_ddot;
assert_eq!(blas_ddot(&[1.0, 2.0, 3.0], &[4.0, 5.0, 6.0]).unwrap(), 32.0);

ยงErrors

If the lengths differ.