From 19a70ae939911505839358d8e3ba72c51e47b254 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 11 Jul 2010 11:01:17 +0200 Subject: fix doc compilation on non 32bits systems --- doc/examples/Tutorial_ReductionsVisitorsBroadcasting_maxnorm.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/examples') diff --git a/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_maxnorm.cpp b/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_maxnorm.cpp index cb46887b6..049c747b0 100644 --- a/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_maxnorm.cpp +++ b/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_maxnorm.cpp @@ -2,13 +2,14 @@ #include 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; -- cgit v1.2.3