52 std::bitset<3> flags_;
A set to flag components of a vector field.
Components operator+(Component i)
Flag an additional component using the plus operator.
Components(Component i)
Constructor.
friend Components operator+(Component i, Component j)
See docstring on function declaration.
bool operator[](size_t i) const
Indexing operator to check if a component is flagged.
Accelerator functionality.
Component
Type giving vector components meaningful names and restricting inputs to Components class to meaningf...
constexpr SMITH_HOST_DEVICE auto operator+(dual< gradient_type > a, double b)
addition of a dual number and a non-dual number