Mercurial > hg > octave-nkf
comparison liboctave/ODEFunc.h @ 1861:620a65533630
[project @ 1996-02-04 10:17:34 by jwe]
author | jwe |
---|---|
date | Sun, 04 Feb 1996 10:26:22 +0000 |
parents | dca09b766816 |
children | 1b57120c997b |
comparison
equal
deleted
inserted
replaced
1860:821870c30840 | 1861:620a65533630 |
---|---|
25 #define octave_ODEFunc_h 1 | 25 #define octave_ODEFunc_h 1 |
26 | 26 |
27 class Matrix; | 27 class Matrix; |
28 class ColumnVector; | 28 class ColumnVector; |
29 | 29 |
30 class ODEFunc | 30 class |
31 ODEFunc | |
31 { | 32 { |
32 public: | 33 public: |
33 | 34 |
34 typedef ColumnVector (*ODERHSFunc) (const ColumnVector&, double); | 35 typedef ColumnVector (*ODERHSFunc) (const ColumnVector&, double); |
35 typedef Matrix (*ODEJacFunc) (const ColumnVector&, double); | 36 typedef Matrix (*ODEJacFunc) (const ColumnVector&, double); |
54 jac = a.jac; | 55 jac = a.jac; |
55 } | 56 } |
56 return *this; | 57 return *this; |
57 } | 58 } |
58 | 59 |
60 ~ODEFunc (void) { } | |
61 | |
59 ODERHSFunc function (void) const { return fun; } | 62 ODERHSFunc function (void) const { return fun; } |
60 | 63 |
61 ODEFunc& set_function (ODERHSFunc f) | 64 ODEFunc& set_function (ODERHSFunc f) |
62 { | 65 { |
63 fun = f; | 66 fun = f; |
73 } | 76 } |
74 | 77 |
75 protected: | 78 protected: |
76 | 79 |
77 ODERHSFunc fun; | 80 ODERHSFunc fun; |
78 | |
79 ODEJacFunc jac; | 81 ODEJacFunc jac; |
80 }; | 82 }; |
81 | 83 |
82 #endif | 84 #endif |
83 | 85 |