Dateien nach „BSP_1_G“ hochladen

This commit is contained in:
Georg Thomas Mandl 2025-10-23 00:49:40 +02:00
commit a77a9f9fca
4 changed files with 102 additions and 0 deletions

33
BSP_1_G/matrixprod.h Normal file
View 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