00001 // DO NOT EDIT! 00002 // Generated automatically from Quad-opts.in. 00003 00004 #if !defined (octave_Quad_options_h) 00005 #define octave_Quad_options_h 1 00006 00007 #include <cfloat> 00008 #include <cmath> 00009 00010 00011 00012 class 00013 Quad_options 00014 { 00015 public: 00016 00017 Quad_options (void) { init (); } 00018 00019 Quad_options (const Quad_options& opt) { copy (opt); } 00020 00021 Quad_options& operator = (const Quad_options& opt) 00022 { 00023 if (this != &opt) 00024 copy (opt); 00025 00026 return *this; 00027 } 00028 00029 ~Quad_options (void) { } 00030 00031 void init (void) 00032 { 00033 x_absolute_tolerance = ::sqrt (DBL_EPSILON); 00034 x_relative_tolerance = ::sqrt (DBL_EPSILON); 00035 reset = true; 00036 } 00037 00038 void copy (const Quad_options& opt) 00039 { 00040 x_absolute_tolerance = opt.x_absolute_tolerance; 00041 x_relative_tolerance = opt.x_relative_tolerance; 00042 reset = opt.reset; 00043 } 00044 00045 void set_options (const Quad_options& opt) { copy (opt); } 00046 00047 void set_default_options (void) { init (); } 00048 00049 void set_absolute_tolerance (double val) 00050 { x_absolute_tolerance = val; reset = true; } 00051 00052 void set_relative_tolerance (double val) 00053 { x_relative_tolerance = val; reset = true; } 00054 double absolute_tolerance (void) const 00055 { return x_absolute_tolerance; } 00056 00057 double relative_tolerance (void) const 00058 { return x_relative_tolerance; } 00059 00060 private: 00061 00062 double x_absolute_tolerance; 00063 double x_relative_tolerance; 00064 00065 protected: 00066 00067 bool reset; 00068 }; 00069 00070 #endif
SEO | [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送 | ||