[eigen] Does c++ use of "norm" bother anyone else?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


According to matlab/octave and http://en.wikipedia.org/wiki/Norm_(mathematics)
  norm(3+4j) =  abs(3+4j) == 5

but in C++:
 norm( complex<float>(3,4) ) == 25
 abs( complex<float>(3,4) ) == 5


Just thought I'd mention it while we are thinking about problems to solve with Eigen::Complex.


-- Mark




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/