spelling + some krazy directives

This commit is contained in:
Gael Guennebaud
2008-08-28 21:44:56 +00:00
parent 80be1ea515
commit 7ea821d18e
24 changed files with 33 additions and 23 deletions

View File

@@ -11,4 +11,4 @@ int main(int, char *[])
Vector4i v4(1, 2, 3, 4);
std::cout << "m3\n" << m3 << "\nm4:\n" << m4 << "\nv4:\n" << v4 << std::endl;
}
}

1
doc/snippets/.krazy Normal file
View File

@@ -0,0 +1 @@
EXCLUDE copyright,license

View File

@@ -10,4 +10,4 @@ Vector2i v1;
v1 << 14, 15;
m2 << v1.transpose(), 16,
v1, m1.block(1,1,2,2);
cout << m2 << endl;
cout << m2 << endl;

View File

@@ -1,3 +1,3 @@
Matrix3d m = Matrix3d::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is the maximum of each column:" << endl << m.colwise().maxCoeff() << endl;
cout << "Here is the maximum of each column:" << endl << m.colwise().maxCoeff() << endl;

View File

@@ -1,3 +1,3 @@
Matrix3d m = Matrix3d::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is the minimum of each column:" << endl << m.colwise().minCoeff() << endl;
cout << "Here is the minimum of each column:" << endl << m.colwise().minCoeff() << endl;

View File

@@ -1,3 +1,3 @@
Matrix3d m = Matrix3d::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl;
cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl;

View File

@@ -1,3 +1,3 @@
Matrix3d m = Matrix3d::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is the sum of each row:" << endl << m.rowwise().sum() << endl;
cout << "Here is the sum of each row:" << endl << m.rowwise().sum() << endl;

View File

@@ -2,4 +2,4 @@ Matrix3f m;
m << 1, 2, 3,
4, 5, 6,
7, 8, 9;
cout << m;
cout << m;

View File

@@ -4,4 +4,4 @@ m << (Matrix3f() << 1, 2, 3, 4, 5, 6, 7, 8, 9).finished(),
MatrixXf::Zero(3,cols-3),
MatrixXf::Zero(rows-3,3),
MatrixXf::Identity(rows-3,cols-3);
cout << m;
cout << m;

View File

@@ -59,4 +59,4 @@ int main(int argc, char *argv[])
m4 = m4 * m4.transpose().eval(); // forces immediate evaluation of the transpose
std::cout << "*** Step 8 ***\nm3:\n" << m3 << "\nm4:\n" << m4 << std::endl;
}
}