Ticket #17680: patch-src-Mat.cpp.diff

File patch-src-Mat.cpp.diff, 430 bytes (added by richard@…, 15 years ago)

Mat.cpp patch - conflicting definitions of abs, use std::abs

  • src/Mat.cpp

     
    620620        }
    621621
    622622        pivot = A.Elt(i, i);
    623         Assert(abs(pivot) > pAssertEps, "(inv) Matrix not invertible");
     623        Assert(std::abs(pivot) > pAssertEps, "(inv) Matrix not invertible");
    624624        det *= pivot;
    625625
    626626        for (k = i + 1; k < n; k++)     // Only do elements to the right of the pivot