So test() and check() are from the unittest module. As for my newMatrix
function:
func newMatrix*[W, H: static int](elements: array[W, array[H, float]]):
Matrix[W, H] =
result = elements
Run
My equals() function being this float comparison function:
proc equal*(a, b: float): bool =
result = if abs(a - b) < epsilon:
true
else:
false
Run
So with everything combined I get this:
[https://play.nim-lang.org](https://play.nim-lang.org)/ Which.... compiles
fine!? I have no idea why I'm getting this error then.