NeoN
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Functions
NeoN::detail Namespace Reference

Functions

template<typename ValueType >
auto deepCopyVisitor (localIdx ssize, const ValueType *srcPtr, ValueType *dstPtr)
 A helper function to simplify the common pattern of copying between and to executor.
 
template<typename ValueType , typename BinaryOp >
void fieldBinaryOp (Vector< ValueType > &a, const Vector< std::type_identity_t< ValueType > > &b, BinaryOp op)
 

Function Documentation

◆ deepCopyVisitor()

template<typename ValueType >
auto NeoN::detail::deepCopyVisitor ( localIdx  ssize,
const ValueType *  srcPtr,
ValueType *  dstPtr 
)

A helper function to simplify the common pattern of copying between and to executor.

Parameters
sizeThe number of elements to copy.
srcPtrPointer to the original block of memory.
dstPtrPointer to the target block of memory.
Template Parameters
ValueTypeThe type of the underlying elements.
Returns
A function that takes a source and an destination executor

Definition at line 33 of file vector.hpp.

◆ fieldBinaryOp()

template<typename ValueType , typename BinaryOp >
void NeoN::detail::fieldBinaryOp ( Vector< ValueType > &  a,
const Vector< std::type_identity_t< ValueType > > &  b,
BinaryOp  op 
)

Definition at line 105 of file fieldFreeFunctions.hpp.