Ah yes I forgot I was using that function in a test like this:
test "getting the submatrix of a 4 x 4 matrix with row / column indicators":
check matrix4x4.submatrix(2, 1) == [[-6.0, 1.0, 6.0],
[-8.0, 8.0, 6.0],
[-7.0, -1.0, 1.0]
].newMatrix
Run
This is my equality operator:
func `==`*[W,H](m1, m2: Matrix[W, H]): bool =
result = true
for x in 0 .. high(m1):
for y in 0 .. high(m1):
if not m1[x][y].equal(m2[x][y]):
return false
Run
