Mercurial > octave
view .gitattributes @ 33203:371217bc9733
Replace obscure Fortran coding pattern in liboctave with modern C++ (bug #65343)
* CMatrix.cc, CSparse.cc, dMatrix.cc, dSparse.cc, fCMatrix.cc, fMatrix.cc:
Add #include for <cmath> and <limits>. Replace all instances of
"rcond_plus_one == 1.0" with "is_singular (rcond)". Delete variable
instantiation for "rcond_plus_one".
* CMatrix.cc, CSparse.cc, dMatrix.cc, dSparse.cc, fCMatrix.cc, fMatrix.cc
(is_singular): New static inline bool function to check whether a matrix
is singular by checking the size of the reciprocal condition number.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 13 Mar 2024 14:11:56 -0700 |
parents | c6f9ff84dc84 |
children |