This commit is contained in:
20
src/Matrix.h
20
src/Matrix.h
@@ -7,14 +7,14 @@
|
||||
|
||||
class Matrix {
|
||||
private:
|
||||
std::size_t m_Lignes;
|
||||
std::size_t m_Colonnes;
|
||||
std::size_t m_Raws;
|
||||
std::size_t m_Columns;
|
||||
std::vector<long double> m_Data;
|
||||
|
||||
public:
|
||||
Matrix(const std::string& fileNameInput);
|
||||
Matrix(std::size_t lignes, std::size_t colonnes);
|
||||
Matrix(std::size_t lignes, std::size_t colonnes, std::initializer_list<long double>&& initList);
|
||||
Matrix(std::size_t raws, std::size_t columns);
|
||||
Matrix(std::size_t raws, std::size_t columns, std::initializer_list<long double>&& initList);
|
||||
~Matrix();
|
||||
|
||||
std::size_t GetRawCount() const;
|
||||
@@ -28,18 +28,18 @@ class Matrix {
|
||||
|
||||
void Transpose();
|
||||
|
||||
static Matrix Identity(std::size_t taille);
|
||||
static Matrix Identity(std::size_t size);
|
||||
|
||||
void Augmenter(const Matrix& droite);
|
||||
void Augment(const Matrix& right);
|
||||
|
||||
Matrix SubMatrix(std::size_t origine_ligne, std::size_t origine_colonne, std::size_t ligne, std::size_t colonne) const;
|
||||
Matrix SubMatrix(std::size_t raw_origin, std::size_t column_origin, std::size_t raw, std::size_t column) const;
|
||||
|
||||
bool operator==(const Matrix& other) const;
|
||||
Matrix operator*(const Matrix& other) const;
|
||||
long double& operator[](std::size_t indice);
|
||||
long double& operator[](std::size_t index);
|
||||
|
||||
long double& at(std::size_t ligne, std::size_t colonne);
|
||||
long double at(std::size_t ligne, std::size_t colonne) const;
|
||||
long double& at(std::size_t raw, std::size_t column);
|
||||
long double at(std::size_t raw, std::size_t column) const;
|
||||
|
||||
friend std::ostream& operator<<(std::ostream& stream, const Matrix& mat);
|
||||
friend std::istream& operator>>(std::istream& stream, Matrix& mat);
|
||||
|
||||
Reference in New Issue
Block a user