DOLFINx 0.10.0.0
DOLFINx C++ interface
Loading...
Searching...
No Matches
dolfinx::scalar Concept Reference

Concept definition

template<class T>
concept dolfinx::scalar = std::is_floating_point_v<T> || std::is_same_v<T, std::complex<double>>
|| std::is_same_v<T, std::complex<float>>
Definition types.h:20

Detailed Description

This concept is used to constrain the a template type to floating point real or complex types. Note that this concept is different to std::floating_point which does not include std::complex.