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

Function one_matrix

tests/math.rs:44–46  ·  view source on GitHub ↗

Helper function to create a matrix of ones for testing GEMV and GEMM

(size: usize)

Source from the content-addressed store, hash-verified

42
43 // Helper function to create a matrix of ones for testing GEMV and GEMM
44 fn one_matrix(size: usize) -> Vec<[f32; VECTOR_SIZE]> {
45 vec![[1.0; VECTOR_SIZE]; size]
46 }
47
48 // Test GEMV with identity matrix
49 #[test]

Callers 2

test_gemv_onesFunction · 0.85
test_gemm_onesFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_gemv_onesFunction · 0.68
test_gemm_onesFunction · 0.68