You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
783 B

#ifndef __MATRIX_H
#define __MATRIX_H
#include <iostream>
#include <iomanip>
#include "punkt3d.h"
#include "emath.h"
namespace segl {
class Matrix {
protected:
float **c;
int m, n;
void allocate();
void copyFromSource(const float**);
public:
Matrix(int, int);
Matrix(int, int, const float**);
Matrix(Punkt3D);
Matrix(const Matrix&);
~Matrix();
const float **getMatrix() const;
bool set(float, int, int);
float get(int, int);
int getM() const;
int getN() const;
Matrix operator*(const Matrix&);
Matrix& operator=(const Matrix&);
Matrix operator+(const float&);
Matrix operator-(const float&);
Matrix operator*(const float&);
Matrix operator/(const float&);
void print(std::string="") const;
};
} // namespace segl
#endif