Skip to content

Commit

Permalink
refactor: rename getters to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophon96 committed Oct 8, 2023
1 parent 74bc81e commit a23403e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/include/jml/math/matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ int get_position(int i, int j);
public:
Matrix(int m, int n);
~Matrix();
int get_rows();
int get_cols();
int get_n_rows();
int get_n_cols();
void set_entry(int i, int j, double value);
std::unique_ptr<Vector> multiply(std::unique_ptr<Vector>);

Expand Down
4 changes: 2 additions & 2 deletions core/src/math/matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Matrix::~Matrix() {
delete this->entries;
}

int Matrix::get_rows() {
int Matrix::get_n_rows() {
return m;
}

int Matrix::get_cols() {
int Matrix::get_n_cols() {
return n;
}

Expand Down

0 comments on commit a23403e

Please sign in to comment.