メインページ   クラス階層   構成   ファイル一覧   構成メンバ   ファイルメンバ  

NLEqn-opts.h

解説を見る。
00001 // DO NOT EDIT!
00002 // Generated automatically from NLEqn-opts.in.
00003 
00004 #if !defined (octave_NLEqn_options_h)
00005 #define octave_NLEqn_options_h 1
00006 
00007 #include <cfloat>
00008 #include <cmath>
00009 
00010 #include <dColVector.h>
00011 #include <NLFunc.h>
00012 
00013 
00014 class
00015 NLEqn_options
00016 {
00017 public:
00018 
00019   NLEqn_options (void) { init (); }
00020 
00021   NLEqn_options (const NLEqn_options& opt) { copy (opt); }
00022 
00023   NLEqn_options& operator = (const NLEqn_options& opt)
00024     {
00025       if (this != &opt)
00026         copy (opt);
00027 
00028       return *this;
00029     }
00030 
00031   ~NLEqn_options (void) { }
00032 
00033   void init (void)
00034     {
00035       x_tolerance = ::sqrt (DBL_EPSILON);
00036       reset = true;
00037     }
00038 
00039   void copy (const NLEqn_options& opt)
00040     {
00041       x_tolerance = opt.x_tolerance;
00042       reset = opt.reset;
00043     }
00044 
00045   void set_options (const NLEqn_options& opt) { copy (opt); }
00046 
00047   void set_default_options (void) { init (); }
00048 
00049   void set_tolerance (double val)
00050     { x_tolerance = (val > 0.0) ? val : ::sqrt (DBL_EPSILON); reset = true; }
00051   double tolerance (void) const
00052     { return x_tolerance; }
00053 
00054 private:
00055 
00056   double x_tolerance;
00057 
00058 protected:
00059 
00060   bool reset;
00061 };
00062 
00063 #endif

Wed Dec 29 11:52:05 2004に生成されました。 doxygen1.2.18
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送