eigen/doc/examples/tut_arithmetic_dot_cross.cpp
Benoit Jacob e078bb2637 big improvements to tutorial, especially page 2 (matrix arithmetic).
add placeholders for some 'special topic' pages.
2010-06-26 14:00:00 -04:00

13 lines
244 B
C++

#include <iostream>
#include <Eigen/Dense>
using namespace Eigen;
int main()
{
Vector3d v(1,2,3);
Vector3d w(0,1,2);
std::cout << "Dot product: " << v.dot(w) << std::endl;
std::cout << "Cross product:\n" << v.cross(w) << std::endl;
}