MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / test_gemv_zero

Function test_gemv_zero

tests/math.rs:69–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 // Test GEMV with zero matrix
68 #[test]
69 fn test_gemv_zero() {
70 let matrix = zero_matrix(VECTOR_SIZE);
71 let vector = [1.0; VECTOR_SIZE];
72 let result = gemv::gemv(&matrix, &vector);
73 assert_eq!(result, [0.0; VECTOR_SIZE]);
74 }
75
76 // Test GEMM with zero matrix
77 #[test]

Callers

nothing calls this directly

Calls 2

zero_matrixFunction · 0.85
gemvFunction · 0.85

Tested by

no test coverage detected