📄 polymtrx.hxx
字号:
// *******************************
// *** CLASS POLYNOMIAL MATRIX ***
// *******************************
#include "matrix.hxx"
#include "debug.def"
class Polynomial ; class FloatMatrix ; class FloatArray ;
class PolynomialMatrix : public Matrix
/*
This class implements a matrix which contains polynomials. These matrices
are typically used as jacobian matrices of finite elements.
DESCRIPTION :
The matrix stores its nRows*nColumns polynomials column by column.
TASKS :
- storing and returing coefficients (i.e., polynomials), in method 'at' ;
- evaluating itself at a given point (method 'EvaluatedAt'). This prod-
uces a matrix of the same size, containing numbers.
*/
{
protected :
Polynomial** values ;
public :
PolynomialMatrix (int,int) ; // constructor
~PolynomialMatrix () ; // destructor
# ifdef DEBUG
Polynomial*& at (int,int) ;
# else
Polynomial*& at (int i,int j) {return values[(j-1)*nRows+i-1] ;}
# endif
FloatMatrix* EvaluatedAt (FloatArray*) ;
PolynomialMatrix* initialized () ;
void printYourself () ;
} ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -