Memosa-FVM  0.2
phononbase/MatrixJML.h
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #ifndef _MATRIXJML_H_
6 #define _MATRIXJML_H_
7 
8 #include "Array.h"
9 
10 template<class T>
11 class MatrixJML
12 {
13  public:
14 
15  typedef Array<T> TArray;
16 
17  MatrixJML() {}
18  virtual ~MatrixJML() {}
19  virtual T& getElement(const int i,const int j)=0;
20  virtual void zero()=0;
21  virtual void multiply(const TArray& x, TArray& b)=0; //Ax=b
22 
23 };
24 
25 #endif
virtual void multiply(const TArray &x, TArray &b)=0
virtual T & getElement(const int i, const int j)=0
Definition: Array.h:14
Array< T > TArray
virtual void zero()=0
virtual ~MatrixJML()