piecewis.hxx
来自「不错的国外的有限元程序代码,附带详细的manual,可以节省很多的底层工作.」· HXX 代码 · 共 32 行
HXX
32 行
// ***************************************
// *** CLASS PIECEWISE LINEAR FUNCTION ***
// ***************************************
#include "loadtime.hxx"
class PiecewiseLinFunction : public LoadTimeFunction
/*
This class implements a piecewise linear function.
DESCRIPTION
The function is defined by 'numberOfPoints' points. 'dates' and 'values'
store respectively the abscissas (t) and the values (f(t)) of the points
*/
{
private :
int numberOfPoints ;
double* dates ;
double* values ;
public :
PiecewiseLinFunction (int i,Domain* d) : LoadTimeFunction(i,d)
{ numberOfPoints=0 ; dates=NULL ; values=NULL ;}
~PiecewiseLinFunction () { delete dates ; delete values ;}
double at (double) ;
void getPoints () ;
void instanciateYourself () { this->getPoints() ;}
} ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?