Library 5

fixed compile issues
This commit is contained in:
Alessandro Ferro
2021-05-31 11:26:27 +02:00
parent fe51a1b547
commit 4aa82d6108
42 changed files with 130 additions and 49 deletions

5
librerie/exercise5/matrix/vec/matrixvec.hpp Normal file → Executable file
View File

@ -16,12 +16,13 @@ protected:
using Matrix<Data>::rows;
using Matrix<Data>::columns;
using Vector<Data>::size;
using Vector<Data>::Elements;
public:
MatrixVec() = default;
MatrixVec(ulong&, ulong&); // A matrix of some specified dimension
MatrixVec(ulong, ulong); // A matrix of some specified dimension
MatrixVec(const MatrixVec&);
MatrixVec(MatrixVec&&) noexcept;
@ -37,7 +38,7 @@ public:
// Specific member functions (inherited from Matrix)
void RowResize(const ulong&) override; // Override Matrix member
void ColumnResize(const ulong&) override; // Override Matrix member
bool ExistsCell(const ulong&, const ulong&) noexcept override; // Override Matrix member (should not throw exceptions)
bool ExistsCell(const ulong&, const ulong&) const noexcept override; // Override Matrix member (should not throw exceptions)
Data& operator()(const ulong&, const ulong&) override; // Override Matrix member (mutable access to the element; throw out_of_range when out of range)
const Data& operator()(const ulong&, const ulong&) const override; // Override Matrix member (immutable access to the element; throw out_of_range when out of range and length_error when not present)