Mercurial > octave
comparison libinterp/corefcn/quadcc.cc @ 30036:80373844f8b2
maint: Use C++ style definition of struct rather than C style in quadcc.cc
* quadcc.cc: Replace typedef for cquad_ival struct with just struct definition.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 24 Aug 2021 17:54:43 -0700 |
parents | 7d6709900da7 |
children | 796f54d4ddbf |
comparison
equal
deleted
inserted
replaced
30035:9fa1d8dd3a23 | 30036:80373844f8b2 |
---|---|
49 | 49 |
50 // Define the minimum size of the interval heap. | 50 // Define the minimum size of the interval heap. |
51 static const int MIN_CQUAD_HEAPSIZE = 200; | 51 static const int MIN_CQUAD_HEAPSIZE = 200; |
52 | 52 |
53 // Data of a single interval. | 53 // Data of a single interval. |
54 typedef struct | 54 struct cquad_ival |
55 { | 55 { |
56 double a, b; | 56 double a, b; |
57 double c[64]; | 57 double c[64]; |
58 double fx[33]; | 58 double fx[33]; |
59 double igral, err; | 59 double igral, err; |
60 int depth, rdepth, ndiv; | 60 int depth, rdepth, ndiv; |
61 } cquad_ival; | 61 }; |
62 | 62 |
63 // Define relative tolerance used when deciding to drop an interval. | 63 // Define relative tolerance used when deciding to drop an interval. |
64 static const double DROP_RELTOL = std::numeric_limits<double>::epsilon () * 10; | 64 static const double DROP_RELTOL = std::numeric_limits<double>::epsilon () * 10; |
65 | 65 |
66 // Some constants and matrices that we'll need. | 66 // Some constants and matrices that we'll need. |