int main() is a standard main() prototype, and makes for cleaner examples

This commit is contained in:
Benoit Jacob 2010-06-25 10:04:10 -04:00
parent 67d79c6751
commit a90575514a
6 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
using Eigen::MatrixXd;
int main(int, char *[])
int main()
{
MatrixXd m(2,2);
m(0,0) = 3;

View File

@ -4,7 +4,7 @@
using Eigen::MatrixXd;
using Eigen::VectorXd;
int main(int, char *[])
int main()
{
MatrixXd m(3,3);
for (int row = 0; row < 3; ++row)

View File

@ -4,7 +4,7 @@
using Eigen::Matrix3d;
using Eigen::Vector3d;
int main(int, char *[])
int main()
{
Matrix3d m;
for (int row = 0; row < 3; ++row)

View File

@ -5,7 +5,7 @@
using namespace std;
using namespace Eigen;
int main(int, char *[])
int main()
{
Matrix3f A;
Vector3f b;

View File

@ -3,7 +3,7 @@
using namespace Eigen;
int main(int, char *[])
int main()
{
for (int size=1; size<=4; ++size)
{

View File

@ -3,7 +3,7 @@
using namespace Eigen;
int main(int, char *[])
int main()
{
Matrix3f m3;
m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9;