Volumes/include/LinAlg/matrixmxn.h
2024-07-21 15:31:51 +02:00

24 lines
407 B
C++

//
// Created by nb on 21.07.24.
//
#ifndef VOLSVECS_MATRIXMXN_H
#define VOLSVECS_MATRIXMXN_H
namespace LinAlg{
template<short m,short n>
class Matrix{
protected:
int static getIndex(short x, short y){
if(x>=m) return -1;
if(y>=n) return -2;
return x+y*n;
}
private:
double _entris[m*n];
};
}
#endif //VOLSVECS_MATRIXMXN_H