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

DASPK.h

解説を見る。
00001 /*
00002 
00003 Copyright (C) 1996, 1997, 2002 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 2, or (at your option) any
00010 later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, write to the Free
00019 Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020 
00021 */
00022 
00023 #if !defined (octave_DASPK_h)
00024 #define octave_DASPK_h 1
00025 
00026 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
00027 #pragma interface
00028 #endif
00029 
00030 #include <cfloat>
00031 #include <cmath>
00032 
00033 #include "DASPK-opts.h"
00034 
00035 class
00036 DASPK : public DAE, public DASPK_options
00037 {
00038 public:
00039 
00040   DASPK (void) : DAE (), DASPK_options (), initialized (false) { }
00041 
00042   DASPK (const ColumnVector& s, double tm, DAEFunc& f)
00043     : DAE (s, tm, f), DASPK_options (), initialized (false) { }
00044 
00045   DASPK (const ColumnVector& s, const ColumnVector& deriv,
00046          double tm, DAEFunc& f)
00047     : DAE (s, deriv, tm, f), DASPK_options (), initialized (false) { }
00048 
00049   ~DASPK (void) { }
00050 
00051   ColumnVector do_integrate (double t);
00052 
00053   Matrix do_integrate (const ColumnVector& tout);
00054 
00055   Matrix do_integrate (const ColumnVector& tout, const ColumnVector& tcrit); 
00056 
00057   Matrix integrate (const ColumnVector& tout, Matrix& xdot_out);
00058 
00059   Matrix integrate (const ColumnVector& tout, Matrix& xdot_out,
00060                     const ColumnVector& tcrit); 
00061 
00062   std::string error_message (void) const;
00063 
00064 private:
00065 
00066   bool initialized;
00067 
00068   int liw;  
00069   int lrw;
00070 
00071   Array<int> info;
00072   Array<int> iwork;
00073 
00074   Array<double> rwork;
00075 
00076   Array<double> abs_tol;
00077   Array<double> rel_tol;
00078 
00079   double *px;
00080   double *pxdot;
00081   double *pabs_tol;
00082   double *prel_tol;
00083   int *pinfo;
00084   int *piwork;
00085   double *prwork;
00086 };
00087 
00088 #endif
00089 
00090 /*
00091 ;;; Local Variables: ***
00092 ;;; mode: C++ ***
00093 ;;; End: ***
00094 */

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