Closed WuyangPeng closed 8 months ago
You have a polite way of saying "There is a bug in your code." Thank you for reporting this. I have pushed the fix to the repository. This is GTE code. I looked at the GTL code and verified that code is correct.
Closing the issue because the bug is fixed.
template <int32_t NumRows, int32_t NumCols, typename Real> Real LInfinityNorm(Matrix<NumRows, NumCols, Real> const& M) { Real maxAbsElement = M[0]; for (int32_t i = 1; i < NumRows * NumCols; ++i) { Real absElement = std::fabs(M[i]); if (absElement > maxAbsElement) { maxAbsElement = absElement; } } return maxAbsElement; }