MatrixBase_array_const.cpp
Go to the documentation of this file.
00001 Vector3d v(-1,2,-3);
00002 cout << "the absolute values:" << endl << v.array().abs() << endl;
00003 cout << "the absolute values plus one:" << endl << v.array().abs()+1 << endl;
00004 cout << "sum of the squares: " << v.array().square().sum() << endl;


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:33:06