Loading [MathJax]/jax/input/TeX/config.js
DOLFINx 0.10.0.0
DOLFINx C++ interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages Concepts
dolfinx::scalar Concept Reference

Concept definition

template<class T>
concept dolfinx::scalar = std::floating_point<T>
|| std::is_same_v<T, std::complex<typename T::value_type>>
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.