Dateien nach „BSP_1_G“ hochladen
This commit is contained in:
parent
174e3841cd
commit
a77a9f9fca
4 changed files with 102 additions and 0 deletions
33
BSP_1_G/matrixprod.h
Normal file
33
BSP_1_G/matrixprod.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#ifndef MATRIXPROD_H
|
||||
#define MATRIXPROD_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class MatrixProd
|
||||
{
|
||||
public:
|
||||
/** Default constructor */
|
||||
MatrixProd();
|
||||
/** Constructor */
|
||||
MatrixProd(vector<double> uc, vector<double> vc);
|
||||
|
||||
vector<double> Mult(const vector<double> &x) const;
|
||||
|
||||
vector<double> MultT(const vector<double> &x) const;
|
||||
|
||||
/** Default destructor */
|
||||
virtual ~MatrixProd();
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
vector<double> u; //!< Member variable "u"
|
||||
vector<double> v; //!< Member variable "v"
|
||||
int nrow; //!< Member variable "nrow"
|
||||
int mcol; //!< Member variable "mcol"
|
||||
};
|
||||
|
||||
#endif // MATRIXPROD_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue