Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/da/d5d/conceptdolfinx_1_1scalar.html
DOLFINx 0.7.3
DOLFINx C++ interface
Loading...
Searching...
No Matches
dolfinx::scalar Concept Reference

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. More...

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>>
This concept is used to constrain the a template type to floating point real or complex types....
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.