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

Function test_vector_ops

src/ops.rs:615–620  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

613
614 #[test]
615 fn test_vector_ops() {
616
617 let v: Vec<u8> = vec![255, 100, 101, 202];
618 let m = v.map(|&x| x as u32);
619 assert_eq!(m.sum(), 658);
620 }
621
622 #[test]
623 fn test_matrix_vector_mul() {

Callers

nothing calls this directly

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected