⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matrix.hxx

📁 不错的国外的有限元程序代码,附带详细的manual,可以节省很多的底层工作.
💻 HXX
字号:
//   ********************
//   *** CLASS MATRIX ***
//   ********************
 

#ifndef matrix_hxx

class FloatMatrix ; class IntArray ;


class Matrix
/*
   This abstract class is the superclass of the class that implement
   matrices (FloatMatrix, PolynomialMatrix,...).
 DESCRIPTION :
   A matrix is characterized by its number of rows and columns.
 TASKS :
   Its tasks are defined in the subclasses.
*/
{
   protected:
      int  nRows ;
      int  nColumns ;

   public:
      Matrix ()             { }                         // constructors
      Matrix (int n,int m)  { nRows=n ; nColumns=m ;}
      ~Matrix ()            { }                         // destructor

      void          checkBounds (int,int) ;
      int           giveNumberOfRows ()      { return nRows ;}
      int           giveNumberOfColumns ()   { return nColumns ;}
      int           isSquare ()              { return (! nRows-nColumns) ;}
} ;

#define matrix_hxx
#endif






⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -