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;


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:31:56