|
NeoN
A framework for CFD software
|
A class that represents a coefficient for the NeoN dsl. More...
#include <coeff.hpp>
Public Member Functions | |
| Coeff () | |
| Coeff (scalar value) | |
| Coeff (scalar coeff, const Vector< scalar > &field) | |
| Coeff (const Vector< scalar > &field) | |
| KOKKOS_INLINE_FUNCTION scalar | operator[] (const localIdx i) const |
| bool | hasView () |
| View< const scalar > | view () |
| Coeff & | operator*= (scalar rhs) |
| Coeff & | operator*= (const Coeff &rhs) |
A class that represents a coefficient for the NeoN dsl.
This class stores a single scalar coefficient and optionally view of values. It is used to delay the evaluation of a scalar multiplication with a field to avoid the creation of a temporary field copy. It provides an indexing operator operator[] that returns the evaluated value at the specified index.
| NeoN::dsl::Coeff::Coeff | ( | ) |
| NeoN::dsl::Coeff::Coeff | ( | scalar | value | ) |
| bool NeoN::dsl::Coeff::hasView | ( | ) |