IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
ippl::detail::meta_div< E > Struct Template Reference

#include <IpplOperations.h>

Inheritance diagram for ippl::detail::meta_div< E >:
Collaboration diagram for ippl::detail::meta_div< E >:

Public Member Functions

KOKKOS_FUNCTION meta_div (const E &u, const typename E::Mesh_t::vector_type vectors[])
template<typename... Idx>
KOKKOS_INLINE_FUNCTION auto operator() (const Idx... args) const
KOKKOS_INLINE_FUNCTION auto operator[] (size_t i) const

Static Public Attributes

static constexpr unsigned dim = E::dim

Private Types

using Mesh_t = typename E::Mesh_t
using vector_type = typename Mesh_t::vector_type

Private Attributes

const E u_m
vector_type vectors_m [dim]

Detailed Description

template<typename E>
struct ippl::detail::meta_div< E >

Meta function of divergence

Definition at line 362 of file IpplOperations.h.

Member Typedef Documentation

◆ Mesh_t

template<typename E>
using ippl::detail::meta_div< E >::Mesh_t = typename E::Mesh_t
private

Definition at line 405 of file IpplOperations.h.

◆ vector_type

template<typename E>
using ippl::detail::meta_div< E >::vector_type = typename Mesh_t::vector_type
private

Definition at line 406 of file IpplOperations.h.

Constructor & Destructor Documentation

◆ meta_div()

template<typename E>
KOKKOS_FUNCTION ippl::detail::meta_div< E >::meta_div ( const E & u,
const typename E::Mesh_t::vector_type vectors[] )
inline

Definition at line 369 of file IpplOperations.h.

References u_m, and vectors_m.

Member Function Documentation

◆ operator()()

template<typename E>
template<typename... Idx>
KOKKOS_INLINE_FUNCTION auto ippl::detail::meta_div< E >::operator() ( const Idx... args) const
inline

Definition at line 380 of file IpplOperations.h.

References ippl::apply(), dim, ippl::dot(), u_m, and vectors_m.

Here is the call graph for this function:

◆ operator[]()

KOKKOS_INLINE_FUNCTION auto ippl::detail::Expression< E, N >::operator[] ( size_t i) const
inlineinherited

Access single element of the expression

Definition at line 32 of file IpplExpressions.h.

Member Data Documentation

◆ dim

template<typename E>
unsigned ippl::detail::meta_div< E >::dim = E::dim
staticconstexpr

Definition at line 366 of file IpplOperations.h.

Referenced by operator()().

◆ u_m

template<typename E>
const E ippl::detail::meta_div< E >::u_m
private

Definition at line 407 of file IpplOperations.h.

Referenced by meta_div(), and operator()().

◆ vectors_m

template<typename E>
vector_type ippl::detail::meta_div< E >::vectors_m[dim]
private

Definition at line 408 of file IpplOperations.h.

Referenced by meta_div(), and operator()().


The documentation for this struct was generated from the following file: