Mercurial > octave
diff libinterp/dldfcn/eigs.cc @ 15220:61822c866ba1
use std::numeric_limits<T>::epsilon in C++ code
* __contourc__.cc, __qp__.cc, quadcc.cc, qz.cc, eigs.cc, mex.cc,
graphics.cc, CMatrix.cc, CollocWt.cc, DASPK-opts.in, DASRT-opts.in,
DASSL-opts.in, LSODE-opts.in, Quad-opts.in, Range.cc, dMatrix.cc,
eigs-base.cc, fCMatrix.cc, fMatrix.cc: Replace DBL_EPSILON and
FLT_EPSILON with std::numeric_limits<T>::epsilon.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 23 Aug 2012 12:13:59 -0400 |
parents | 2fc554ffbc28 |
children |
line wrap: on
line diff
--- a/libinterp/dldfcn/eigs.cc Thu Aug 23 10:09:41 2012 -0500 +++ b/libinterp/dldfcn/eigs.cc Thu Aug 23 12:13:59 2012 -0400 @@ -329,7 +329,7 @@ bool a_is_sparse = false; ColumnVector permB; int arg_offset = 0; - double tol = DBL_EPSILON; + double tol = std::numeric_limits<double>::epsilon (); int maxit = 300; int disp = 0; octave_idx_type p = -1;