Skip to content

Commit

Permalink
turn off clang-format for specific cases
Browse files Browse the repository at this point in the history
  • Loading branch information
yixuan committed Jan 1, 2025
1 parent 8115b37 commit ed4e773
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Arnoldi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ using Matrix = Eigen::MatrixXd;
using Vector = Eigen::VectorXd;
using Index = Eigen::Index;

// clang-format off
template <typename FacType, typename MatType>
void run_test(FacType& fac, const MatType& A, int m)
{
Expand Down Expand Up @@ -82,6 +83,7 @@ void run_test(FacType& fac, const MatType& A, int m)
REQUIRE(resid.leftCols(k3 - 1).cwiseAbs().maxCoeff() == Approx(0.0).margin(tol));
REQUIRE((resid.template rightCols<1>() - f).cwiseAbs().maxCoeff() == Approx(0.0).margin(tol));
}
// clang-format on

TEST_CASE("Arnoldi factorization of general real matrix", "[Arnoldi]")
{
Expand Down

0 comments on commit ed4e773

Please sign in to comment.