34 KOKKOS_INLINE_FUNCTION
35 scalar operator[](
const size_t i)
const {
return (hasSpan_) ? span_[i] * coeff_ : coeff_; }
39 std::span<const scalar>
span();
51 std::span<const scalar> span_;
A class to contain the data and executors for a field and define some basic operations.
A class that represents a coefficient for the NeoFOAM dsl.
KOKKOS_INLINE_FUNCTION scalar operator[](const size_t i) const
Coeff(const Field< scalar > &field)
Coeff & operator*=(scalar rhs)
Coeff(scalar coeff, const Field< scalar > &field)
Coeff & operator*=(const Coeff &rhs)
std::span< const scalar > span()
Coeff operator*(const Coeff &lhs, const Coeff &rhs)