I am in the process of building a matrix class (uni project, with
my choice of programming language) and appear to have run into a
problem that I'm not too sure how to fix.
My class uses templates to define the shape of the matrix,
although I'm not sure if that matters. As part of my class, I
On Tuesday, 18 October 2022 at 18:59:37 UTC, rikki cattermole
wrote:
Well its not a type system issue.
Making u = n, that'll returns true.
So the problem almost certainly lies with IEEE-754.
They are horrible to compare (float/double).
Unfortunately you are stuck calling functions like isClose
On Tuesday, 18 October 2022 at 20:02:02 UTC, ag0aep6g wrote:
On Tuesday, 18 October 2022 at 18:53:41 UTC, Matthew Rushworth
wrote:
The entirety of opEquals:
```
/// both matrices have to have an identical shape to compare
/// each element must be identical to match
bool opEquals(size_t X, size_