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

📄 column.hxx

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


#ifndef column_hxx
#define column_hxx

#include "flotarry.hxx"
class IntArray ; class FloatMatrix ; class Skyline ;


class Column : public FloatArray
/*
   This class implements a column in a matrix stored in segmented form
   (symmetric skyline). A column is a particular kind of FloatArray.
 DESCRIPTION :
   A column n stores in 'values' its 'size' coefficients, upwards :
   .values[0]      = diagonal coefficient A(n,n)
   .values[1]      = off-diagonal coefficient A(n-1,n)
   .values[size-1] = highest non-0 coefficient of the n-th column.
 TASKS :
   Those inherited from FloatArray.
*/
{
   private :
      int       number ;
      Skyline*  matrix ;

   public :
      Column (int n,int size,Skyline* m) : FloatArray(size)
					       { number=n ; matrix=m ; }
      ~Column () {}

      double&  at (int i)                      { return values[number-i] ;}
      void     checkSizeTowards (IntArray*,int) ;
      double   dot (Column*,int,int) ;
      Column*  GiveCopy () ;
      int      giveHighestRow ()               { return number-size+1 ;}
} ;

#endif

⌨️ 快捷键说明

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