libsegl/matrix.h

43 lines
714 B
C
Raw Normal View History

2008-02-09 13:43:23 +01:00
#ifndef __MATRIX_H
#define __MATRIX_H
#include <iostream>
#include <iomanip>
#include "emath.h"
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);
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;
};
#endif