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
+6 -2
View File
@@ -38,7 +38,9 @@ struct packed_triangular_matrix_vector_product<Index, Mode, LhsScalar, ConjLhs,
if (!(HasUnitDiag || HasZeroDiag) || (--r > 0)) {
ResMap(res + (IsLower ? s + i : 0), r) += alpha * cj(rhs[i]) * ConjLhsType(LhsMap(lhs + s, r));
}
EIGEN_IF_CONSTEXPR(HasUnitDiag) { res[i] += alpha * cj(rhs[i]); }
EIGEN_IF_CONSTEXPR (HasUnitDiag) {
res[i] += alpha * cj(rhs[i]);
}
lhs += IsLower ? size - i : i + 1;
}
};
@@ -67,7 +69,9 @@ struct packed_triangular_matrix_vector_product<Index, Mode, LhsScalar, ConjLhs,
alpha *
(ConjLhsType(LhsMap(lhs + s, r)).cwiseProduct(ConjRhsType(RhsMap(rhs + (IsLower ? 0 : s + i), r)))).sum();
}
EIGEN_IF_CONSTEXPR(HasUnitDiag) { res[i] += alpha * cj(rhs[i]); }
EIGEN_IF_CONSTEXPR (HasUnitDiag) {
res[i] += alpha * cj(rhs[i]);
}
lhs += IsLower ? i + 1 : size - i;
}
};