Login
Login

Re: Vector.equals()

Home 21090308 Forums Re: Vector.equals()

#1953
haksunli
Keymaster

The way you do eqality checking for Vector is wrong.

To check to see if two vectors are absolutely equal, you may do as follows.

Note that the numerical values must have exactly the same binary representations in memory for this to work. The equality check method is essentially an override of

To allow a precision parameter in the “equality” checking, which is most often the case in numerical computing, you may do: