2010-06-17 19:12:40 +08:00
|
|
|
#include <iostream>
|
|
|
|
|
#include <Eigen/Dense>
|
|
|
|
|
|
2021-12-08 03:57:38 +08:00
|
|
|
using Eigen::Matrix3d;
|
|
|
|
|
using Eigen::Vector3d;
|
2010-06-17 19:12:40 +08:00
|
|
|
|
2010-06-25 22:04:10 +08:00
|
|
|
int main()
|
2010-06-17 19:12:40 +08:00
|
|
|
{
|
2012-08-17 21:49:18 +08:00
|
|
|
Matrix3d m = Matrix3d::Random();
|
|
|
|
|
m = (m + Matrix3d::Constant(1.2)) * 50;
|
2021-12-08 03:57:38 +08:00
|
|
|
std::cout << "m =" << std::endl << m << std::endl;
|
2012-08-17 21:49:18 +08:00
|
|
|
Vector3d v(1,2,3);
|
2010-06-28 01:37:16 +08:00
|
|
|
|
2021-12-08 03:57:38 +08:00
|
|
|
std::cout << "m * v =" << std::endl << m * v << std::endl;
|
2010-06-17 19:12:40 +08:00
|
|
|
}
|