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

Function test_gemm_zero

tests/math.rs:78–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 // Test GEMM with zero matrix
77 #[test]
78 fn test_gemm_zero() {
79 let matrix_a = zero_matrix(VECTOR_SIZE);
80 let matrix_b = zero_matrix(VECTOR_SIZE);
81 let mut result_matrix = zero_matrix(VECTOR_SIZE);
82 gemm::gemm(&matrix_a, &matrix_b, &mut result_matrix);
83 assert_eq!(result_matrix, zero_matrix(VECTOR_SIZE));
84 }
85
86 // Test GEMV with one matrix
87 #[test]

Callers

nothing calls this directly

Calls 2

zero_matrixFunction · 0.85
gemmFunction · 0.85

Tested by

no test coverage detected