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:
co-authored by
Rasmus Munk Larsen
parent
7b56b05698
commit
7966ea495e
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user