Skip to content

Commit

Permalink
Format using clang-format-3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Sep 5, 2018
1 parent c7f5c20 commit a6e2e3f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/test_format_local.sh
Expand Up @@ -10,6 +10,7 @@ fi
CLANG_FORMAT="clang-format"

which "clang-format-3.8" > /dev/null && CLANG_FORMAT="clang-format-3.8"
which "clang-format-3.9" > /dev/null && CLANG_FORMAT="clang-format-3.9"

FILES=`git ls-files | grep -E "\.(cpp|h|hpp|c)$" | grep -Ev "symengine/utilities" | grep -Ev "cmake/"`

Expand Down
3 changes: 2 additions & 1 deletion symengine/dense_matrix.cpp
Expand Up @@ -748,7 +748,8 @@ unsigned pivot(DenseMatrix &B, unsigned r, unsigned c)
return k;
}

void reduced_row_echelon_form(const DenseMatrix &A, DenseMatrix &b, vec_int &pivot_cols, bool normalize_last)
void reduced_row_echelon_form(const DenseMatrix &A, DenseMatrix &b,
vec_int &pivot_cols, bool normalize_last)
{
permutelist pl;
if (normalize_last) {
Expand Down
3 changes: 2 additions & 1 deletion symengine/matrix.h
Expand Up @@ -213,7 +213,8 @@ class DenseMatrix : public MatrixBase
friend unsigned pivot(DenseMatrix &B, unsigned r, unsigned c);

friend void reduced_row_echelon_form(const DenseMatrix &A, DenseMatrix &B,
vec_int &pivot_cols, bool normalize_last=false);
vec_int &pivot_cols,
bool normalize_last = false);

// Ax = b
friend void diagonal_solve(const DenseMatrix &A, const DenseMatrix &b,
Expand Down

0 comments on commit a6e2e3f

Please sign in to comment.