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

Function test_matrix_matrix_ops_sub

src/ops.rs:753–767  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

751
752 #[test]
753 fn test_matrix_matrix_ops_sub() {
754 let x = mat![
755 1.0, 2.0, 3.0;
756 4.0, 2.0, 5.0
757 ];
758 let y = mat![
759 3.0, 1.0, 4.0;
760 2.0, 3.0, 2.0
761 ];
762
763 let m = x.sub(&y);
764 assert!(m.eq(&mat![
765 -2.0, 1.0, -1.0; 2.0, -1.0, 3.0
766 ]));
767 }
768}
769

Callers

nothing calls this directly

Calls 1

subMethod · 0.80

Tested by

no test coverage detected