fix doc compilation on non 32bits systems

This commit is contained in:
Gael Guennebaud 2010-07-11 11:01:17 +02:00
parent 850c6d8a2b
commit 19a70ae939

View File

@ -2,13 +2,14 @@
#include <Eigen/Dense>
using namespace std;
using namespace Eigen;
int main()
{
Eigen::MatrixXf mat(2,4);
MatrixXf mat(2,4);
mat << 1, 2, 6, 9,
3, 1, 7, 2;
int maxIndex;
MatrixXf::Index maxIndex;
float maxNorm = mat.colwise().sum().maxCoeff(&maxIndex);
std::cout << "Maximum sum at position " << maxIndex << std::endl;