MCPcopy
hub / github.com/TheAlgorithms/Go / BenchmarkMatrixMultiply

Function BenchmarkMatrixMultiply

math/matrix/multiply_test.go:91–101  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

89}
90
91func BenchmarkMatrixMultiply(b *testing.B) {
92 // Create sample matrices for benchmarking
93 rows := 10
94 columns := 10
95 m1 := matrix.New(rows, columns, 2) // Replace with appropriate values
96 m2 := matrix.New(rows, columns, 3) // Replace with appropriate values
97
98 for i := 0; i < b.N; i++ {
99 _, _ = m1.Multiply(m2)
100 }
101}

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
MultiplyMethod · 0.80

Tested by

no test coverage detected