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

📄 matrixbase.h

📁 An object-oriented C++ implementation of Davidson method for finding a few selected extreme eigenpai
💻 H
字号:

#ifndef __MATRIX_BASE
#define __MATRIX_BASE

#include "../davidson/defaulttd.h"

class MatrixBase
{
	public:
        // the method returns pointer for the vector of the diagonal elements
    	virtual ftyp *Diagonal() const=0;

        /* computes the product C of matrix A (of size n) and a block m of
           vectors B (of size n), that is C=A B*/
        virtual void dssbmv(ntyp , ftyp *, ftyp *, ntyp ) const=0;

        /* returns the dimension of the table containing the diagonal elements
           (equal to dimension of matrix A) */
        virtual ntyp GetN() const=0;

        //this operator returns  the value of the i-th diagonal element
        ftyp operator[](const ntyp &i) const {return *(Diagonal()+i);};
};

#endif

⌨️ 快捷键说明

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