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

Function test_gemv_identity

tests/math.rs:50–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 // Test GEMV with identity matrix
49 #[test]
50 fn test_gemv_identity() {
51 let matrix = identity_matrix(VECTOR_SIZE);
52 let vector = [1.0; VECTOR_SIZE];
53 let result = gemv::gemv(&matrix, &vector);
54 assert_eq!(result, [1.0; VECTOR_SIZE]);
55 }
56
57 // Test GEMM with identity matrix
58 #[test]

Callers

nothing calls this directly

Calls 2

identity_matrixFunction · 0.85
gemvFunction · 0.85

Tested by

no test coverage detected