-
-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Related to #3770
https://github.com/FEniCS/dolfinx/blob/main/cpp/dolfinx/common/math.h
- fma is not available for all types, e.g. boost high precision.
template <typename T>
concept has_std_fma = requires(T a, T b, T c) {
{ std::fma(a, b, c) } -> std::convertible_to<T>;
};
// Implement fallback
- Some functions e.g.
det
have branches based on size that may be known at compile-time. det(Matrix A)
specialisation is possible unused.- All functions have overly general template types, add concepts?
- Some functions could be removed completely with C++26 linear algebra support.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request