NeoN
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NeoN::Vec3 Class Reference

A class for the representation of a 3D Vec3. More...

#include <vec3.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION Vec3 ()
 
KOKKOS_INLINE_FUNCTION Vec3 (scalar x, scalar y, scalar z)
 
KOKKOS_INLINE_FUNCTION Vec3 (const scalar constValue)
 
scalardata ()
 Returns pointer to the data of the vector.
 
const scalardata () const
 Returns pointer to the data of the vector.
 
constexpr size_t size () const
 Returns the size of the vector.
 
KOKKOS_INLINE_FUNCTION scalaroperator[] (const size_t i)
 
KOKKOS_INLINE_FUNCTION scalar operator[] (const size_t i) const
 
KOKKOS_INLINE_FUNCTION scalaroperator() (const size_t i)
 
KOKKOS_INLINE_FUNCTION scalar operator() (const size_t i) const
 
KOKKOS_INLINE_FUNCTION bool operator== (const Vec3 &rhs) const
 
KOKKOS_INLINE_FUNCTION Vec3 operator+ (const Vec3 &rhs) const
 
KOKKOS_INLINE_FUNCTION Vec3operator+= (const Vec3 &rhs)
 
KOKKOS_INLINE_FUNCTION Vec3 operator- (const Vec3 &rhs) const
 
KOKKOS_INLINE_FUNCTION Vec3operator-= (const Vec3 &rhs)
 
KOKKOS_INLINE_FUNCTION Vec3 operator* (const scalar &rhs) const
 
KOKKOS_INLINE_FUNCTION Vec3 operator* (const label &rhs) const
 
KOKKOS_INLINE_FUNCTION Vec3operator*= (const scalar &rhs)
 

Detailed Description

A class for the representation of a 3D Vec3.

Definition at line 22 of file vec3.hpp.

Constructor & Destructor Documentation

◆ Vec3() [1/3]

KOKKOS_INLINE_FUNCTION NeoN::Vec3::Vec3 ( )
inline

Definition at line 27 of file vec3.hpp.

◆ Vec3() [2/3]

KOKKOS_INLINE_FUNCTION NeoN::Vec3::Vec3 ( scalar  x,
scalar  y,
scalar  z 
)
inline

Definition at line 35 of file vec3.hpp.

◆ Vec3() [3/3]

KOKKOS_INLINE_FUNCTION NeoN::Vec3::Vec3 ( const scalar  constValue)
inlineexplicit

Definition at line 43 of file vec3.hpp.

Member Function Documentation

◆ data() [1/2]

scalar * NeoN::Vec3::data ( )
inline

Returns pointer to the data of the vector.

Returns
point to the first scalar

Definition at line 55 of file vec3.hpp.

◆ data() [2/2]

const scalar * NeoN::Vec3::data ( ) const
inline

Returns pointer to the data of the vector.

Returns
point to the first scalar

Definition at line 62 of file vec3.hpp.

◆ operator()() [1/2]

KOKKOS_INLINE_FUNCTION scalar & NeoN::Vec3::operator() ( const size_t  i)
inline

Definition at line 78 of file vec3.hpp.

◆ operator()() [2/2]

KOKKOS_INLINE_FUNCTION scalar NeoN::Vec3::operator() ( const size_t  i) const
inline

Definition at line 81 of file vec3.hpp.

◆ operator*() [1/2]

KOKKOS_INLINE_FUNCTION Vec3 NeoN::Vec3::operator* ( const label rhs) const
inline

Definition at line 127 of file vec3.hpp.

◆ operator*() [2/2]

KOKKOS_INLINE_FUNCTION Vec3 NeoN::Vec3::operator* ( const scalar rhs) const
inline

Definition at line 120 of file vec3.hpp.

◆ operator*=()

KOKKOS_INLINE_FUNCTION Vec3 & NeoN::Vec3::operator*= ( const scalar rhs)
inline

Definition at line 134 of file vec3.hpp.

◆ operator+()

KOKKOS_INLINE_FUNCTION Vec3 NeoN::Vec3::operator+ ( const Vec3 rhs) const
inline

Definition at line 90 of file vec3.hpp.

◆ operator+=()

KOKKOS_INLINE_FUNCTION Vec3 & NeoN::Vec3::operator+= ( const Vec3 rhs)
inline

Definition at line 96 of file vec3.hpp.

◆ operator-()

KOKKOS_INLINE_FUNCTION Vec3 NeoN::Vec3::operator- ( const Vec3 rhs) const
inline

Definition at line 105 of file vec3.hpp.

◆ operator-=()

KOKKOS_INLINE_FUNCTION Vec3 & NeoN::Vec3::operator-= ( const Vec3 rhs)
inline

Definition at line 111 of file vec3.hpp.

◆ operator==()

KOKKOS_INLINE_FUNCTION bool NeoN::Vec3::operator== ( const Vec3 rhs) const
inline

Definition at line 84 of file vec3.hpp.

◆ operator[]() [1/2]

KOKKOS_INLINE_FUNCTION scalar & NeoN::Vec3::operator[] ( const size_t  i)
inline

Definition at line 72 of file vec3.hpp.

◆ operator[]() [2/2]

KOKKOS_INLINE_FUNCTION scalar NeoN::Vec3::operator[] ( const size_t  i) const
inline

Definition at line 75 of file vec3.hpp.

◆ size()

constexpr size_t NeoN::Vec3::size ( ) const
inlineconstexpr

Returns the size of the vector.

Returns
The size of the vector

Definition at line 69 of file vec3.hpp.


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