vector dot product
Submitted by gongzhitaao
Assigned to Nobody
Link to original bugzilla bug (#966)
Version: 3.3 (current stable)
Operating system: Other UNIX-like
Description
The following code does not compile with std=c++11
#include <Eigen/Dense>
int main(int argc, char *argv[])
{
Eigen::VectorXd w = Eigen::VectorXd::Zero(3);
std::cout << w.squaredNorm() << std::endl;
// std::cout << w.dot(w) << std::endl;
return 0;
}
Removing flag std=c++11 works fine
Depends on
Edited by Eigen Bugzilla