Login
Login

Vector.equals()

Home 21090308 Forums Numerical Method Linear Algebra Vector.equals()

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1813
    kevinsun
    Member

    Could anyone tell me how Vector.equals() checks the entries? Is there any precision tolerance for doubles?

    I have a problem here:
    A, B are Vector of doubles, for the code:
    assertTrue(A.toString().equals(B.toString()));
    assertTrue(A.equals(B));
    I got True for the first line but False for the second.

    Any thought? Thx

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.