How to compare Eigen matrices for equality

Updated post here: https://codeyarns.github.io/tech/2016-02-16-how-to-compare-eigen-matrices-for-equality.html

One thought on “How to compare Eigen matrices for equality

  1. Above “norm” comparison is invalid.

    isApprox essientiall uses:

    |a-b|./ min(|a|,|b|) < small_positive_value

    while your norm in the 1D case equates to:

    sqrt( (a-b)^2 ) = |a-b| < small_positive_value.

    My conclusion is that you dont know how to compare floating point values so stop misinforming others…dd

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.