IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
ippl::detail::meta_cross< E1, E2 > Struct Template Reference

#include <IpplOperations.h>

Inheritance diagram for ippl::detail::meta_cross< E1, E2 >:
Collaboration diagram for ippl::detail::meta_cross< E1, E2 >:

Public Member Functions

KOKKOS_FUNCTION meta_cross (const E1 &u, const E2 &v)
KOKKOS_INLINE_FUNCTION auto operator[] (size_t i) const
template<typename... Args>
KOKKOS_INLINE_FUNCTION auto operator() (Args... args) const

Static Public Attributes

static constexpr unsigned dim = E1::dim

Private Attributes

const E1 u_m
const E2 v_m

Detailed Description

template<typename E1, typename E2>
struct ippl::detail::meta_cross< E1, E2 >

Meta function of cross product. This function is only supported for 3-dimensional vectors.

Definition at line 213 of file IpplOperations.h.

Constructor & Destructor Documentation

◆ meta_cross()

template<typename E1, typename E2>
KOKKOS_FUNCTION ippl::detail::meta_cross< E1, E2 >::meta_cross ( const E1 & u,
const E2 & v )
inline

Definition at line 218 of file IpplOperations.h.

References u_m, and v_m.

Member Function Documentation

◆ operator()()

template<typename E1, typename E2>
template<typename... Args>
KOKKOS_INLINE_FUNCTION auto ippl::detail::meta_cross< E1, E2 >::operator() ( Args... args) const
inline

Definition at line 235 of file IpplOperations.h.

References ippl::cross(), u_m, and v_m.

Here is the call graph for this function:

◆ operator[]()

template<typename E1, typename E2>
KOKKOS_INLINE_FUNCTION auto ippl::detail::meta_cross< E1, E2 >::operator[] ( size_t i) const
inline

Definition at line 225 of file IpplOperations.h.

References u_m, and v_m.

Member Data Documentation

◆ dim

template<typename E1, typename E2>
unsigned ippl::detail::meta_cross< E1, E2 >::dim = E1::dim
staticconstexpr

Definition at line 214 of file IpplOperations.h.

◆ u_m

template<typename E1, typename E2>
const E1 ippl::detail::meta_cross< E1, E2 >::u_m
private

Definition at line 240 of file IpplOperations.h.

Referenced by meta_cross(), operator()(), and operator[]().

◆ v_m

template<typename E1, typename E2>
const E2 ippl::detail::meta_cross< E1, E2 >::v_m
private

Definition at line 241 of file IpplOperations.h.

Referenced by meta_cross(), operator()(), and operator[]().


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