Documentation fixes. Thanks to Rodney Sparapani for reporting these.

(transplanted from 5eefca637e
)
This commit is contained in:
Jitse Niesen
2012-08-17 14:49:18 +01:00
parent e2886d34ef
commit 0c078ca80a
3 changed files with 8 additions and 8 deletions

View File

@@ -6,10 +6,10 @@ using namespace std;
int main()
{
MatrixXf m = MatrixXf::Random(3,3);
m = (m + MatrixXf::Constant(3,3,1.2)) * 50;
MatrixXd m = MatrixXd::Random(3,3);
m = (m + MatrixXd::Constant(3,3,1.2)) * 50;
cout << "m =" << endl << m << endl;
VectorXf v(3);
VectorXd v(3);
v << 1, 2, 3;
cout << "m * v =" << endl << m * v << endl;
}