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

Function test_gemv_ones

tests/math.rs:88–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 // Test GEMV with one matrix
87 #[test]
88 fn test_gemv_ones() {
89 let matrix = one_matrix(VECTOR_SIZE);
90 let vector = [1.0; VECTOR_SIZE];
91 let result = gemv::gemv(&matrix, &vector);
92 let expected_result: [f32; VECTOR_SIZE] = [VECTOR_SIZE as f32; VECTOR_SIZE];
93 assert_eq!(result, expected_result);
94 }
95
96 // Test GEMM with one matrix
97 #[test]

Callers

nothing calls this directly

Calls 2

one_matrixFunction · 0.85
gemvFunction · 0.85

Tested by

no test coverage detected