BenchmarkMatchDimensions benchmarks the MatchDimensions method.
(b *testing.B)
| 28 | |
| 29 | // BenchmarkMatchDimensions benchmarks the MatchDimensions method. |
| 30 | func BenchmarkMatchDimensions(b *testing.B) { |
| 31 | // Create sample matrices for benchmarking |
| 32 | rows := 100 |
| 33 | columns := 100 |
| 34 | m1 := matrix.New(rows, columns, 0) // Replace with appropriate values |
| 35 | m2 := matrix.New(rows, columns, 0) // Replace with appropriate values |
| 36 | |
| 37 | for i := 0; i < b.N; i++ { |
| 38 | _ = m1.MatchDimensions(m2) |
| 39 | } |
| 40 | } |
nothing calls this directly
no test coverage detected