NeoN
WIP Prototype of a modern OpenFOAM core
|
#include <tuple>
#include <Kokkos_Core.hpp>
#include "NeoN/core/primitives/label.hpp"
#include "NeoN/helpers/exceptions.hpp"
#include "NeoN/core/parallelAlgorithms.hpp"
#include "NeoN/core/view.hpp"
Go to the source code of this file.
Namespaces | |
namespace | NeoN |
namespace | NeoN::detail |
Functions | |
template<typename T , typename Inner > | |
void | NeoN::map (Vector< T > &a, const Inner inner, std::pair< localIdx, localIdx > range={0, 0}) |
Map a field using a specific executor. | |
template<typename ValueType > | |
void | NeoN::fill (Vector< ValueType > &a, const std::type_identity_t< ValueType > value, std::pair< localIdx, localIdx > range={0, 0}) |
Fill the field with a scalar value using a specific executor. | |
template<typename ValueType > | |
void | NeoN::setVector (Vector< ValueType > &a, const View< const std::type_identity_t< ValueType > > b, std::pair< localIdx, localIdx > range={0, 0}) |
Set the field with a view of values using a specific executor. | |
template<typename ValueType > | |
void | NeoN::scalarMul (Vector< ValueType > &a, const scalar value) |
template<typename ValueType , typename BinaryOp > | |
void | NeoN::detail::fieldBinaryOp (Vector< ValueType > &a, const Vector< std::type_identity_t< ValueType > > &b, BinaryOp op) |
template<typename ValueType > | |
void | NeoN::add (Vector< ValueType > &a, const Vector< std::type_identity_t< ValueType > > &b) |
template<typename ValueType > | |
void | NeoN::sub (Vector< ValueType > &a, const Vector< std::type_identity_t< ValueType > > &b) |
template<typename ValueType > | |
void | NeoN::mul (Vector< ValueType > &a, const Vector< std::type_identity_t< ValueType > > &b) |
template<typename... Args> | |
auto | NeoN::spans (Args &... fields) |
template<typename... Args> | |
auto | NeoN::copyToHosts (Args &... fields) |
template<typename T > | |
bool | NeoN::equal (Vector< T > &field, T value) |
template<typename T > | |
bool | NeoN::equal (const Vector< T > &field, const Vector< T > &field2) |
template<typename T > | |
bool | NeoN::equal (const Vector< T > &field, View< T > span2) |