mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
big improvements to tutorial, especially page 2 (matrix arithmetic).
add placeholders for some 'special topic' pages.
This commit is contained in:
12
doc/examples/tut_arithmetic_dot_cross.cpp
Normal file
12
doc/examples/tut_arithmetic_dot_cross.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user