Created
January 3, 2012 21:55
-
-
Save dadeba/1557145 to your computer and use it in GitHub Desktop.
Compute the average of relative error between 3D vectors a0 & a1 in Eigen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a0 and a1 are row-major Array | |
Vector3f a_err = (std::abs((a0 - a1)/a0)).colwise().sum()/a0.rows(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment