This commit is contained in:
Gael Guennebaud 2012-06-24 10:13:28 +02:00
parent e46fc8c05c
commit 7c32904766

View File

@ -226,7 +226,7 @@ DenseBase<Derived>::maxCoeff(IndexType* rowPtr, IndexType* colPtr) const
internal::max_coeff_visitor<Derived> maxVisitor; internal::max_coeff_visitor<Derived> maxVisitor;
this->visit(maxVisitor); this->visit(maxVisitor);
*rowPtr = maxVisitor.row; *rowPtr = maxVisitor.row;
if (col) *col = maxVisitor.col; if (colPtr) *colPtr = maxVisitor.col;
return maxVisitor.res; return maxVisitor.res;
} }