MCPcopy Create free account
hub / github.com/daniel-e/rustml / compute

Method compute

src/norm.rs:15–23  ·  view source on GitHub ↗

TODO handling of NaN and stuff like this

(a: &[f64])

Source from the content-addressed store, hash-verified

13
14 // TODO handling of NaN and stuff like this
15 fn compute(a: &[f64]) -> f64 {
16 unsafe {
17 cblas_dnrm2(
18 a.len() as libc::c_int,
19 a.as_ptr() as *const libc::c_double,
20 1 as libc::c_int
21 )
22 }
23 }
24}
25
26impl Norm<f32> for L2Norm {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected