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
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user