Skip to content

Commit

Permalink
fix: const cant have default value
Browse files Browse the repository at this point in the history
  • Loading branch information
marfanr committed Dec 16, 2024
1 parent 0a1cdbe commit 4430883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/keisan/matrix/matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Matrix
bool inverse();

Matrix<N, M> transpose() const;
Matrix<M, N> round(const double & tolerance = 1e-9) const;
Matrix<M, N> round(double & tolerance = 1e-9) const;

private:
double data[M * N];
Expand Down
2 changes: 1 addition & 1 deletion include/keisan/matrix/matrix.impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ Matrix<N, M> Matrix<M, N>::transpose() const
}

template<size_t M, size_t N>
Matrix<M, N> Matrix<M, N>::round(const double & tolerance = 1e-9) const {
Matrix<M, N> Matrix<M, N>::round(double & tolerance = 1e-9) const {
Matrix<M, N> matrix;
for (size_t i = 0; i < M; ++i) {
for (size_t j = 0; j < N; ++j) {
Expand Down

0 comments on commit 4430883

Please sign in to comment.