clang-format: register EIGEN_IF_CONSTEXPR as an IfMacro

libeigen/eigen!2604

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
Rasmus Munk Larsen
2026-06-06 13:08:44 -07:00
co-authored by Rasmus Munk Larsen
parent 7b56b05698
commit 7966ea495e
97 changed files with 1714 additions and 1751 deletions
+2 -2
View File
@@ -75,8 +75,8 @@ void sparse_extra(const SparseMatrixType& ref) {
// test coeff and coeffRef
for (int i = 0; i < (int)zeroCoords.size(); ++i) {
VERIFY_IS_MUCH_SMALLER_THAN(m.coeff(zeroCoords[i].x(), zeroCoords[i].y()), eps);
EIGEN_IF_CONSTEXPR((std::is_same<SparseMatrixType, SparseMatrix<Scalar, Flags> >::value))
VERIFY_RAISES_ASSERT(m.coeffRef(zeroCoords[0].x(), zeroCoords[0].y()) = 5);
EIGEN_IF_CONSTEXPR ((std::is_same<SparseMatrixType, SparseMatrix<Scalar, Flags> >::value))
VERIFY_RAISES_ASSERT(m.coeffRef(zeroCoords[0].x(), zeroCoords[0].y()) = 5);
}
VERIFY_IS_APPROX(m, refMat);