NeoN
A framework for CFD software
Loading...
Searching...
No Matches
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)
scalar * data ()
 Returns pointer to the data of the vector.
const scalar * data () const
 Returns pointer to the data of the vector.
constexpr sizeType size () const
 Returns the size of the vector.
KOKKOS_INLINE_FUNCTION scalar & operator[] (const sizeType i)
KOKKOS_INLINE_FUNCTION scalar operator[] (const sizeType i) const
KOKKOS_INLINE_FUNCTION scalar & operator() (const sizeType i)
KOKKOS_INLINE_FUNCTION scalar operator() (const sizeType i) const
KOKKOS_INLINE_FUNCTION bool operator== (const Vec3 &rhs) const
KOKKOS_INLINE_FUNCTION Vec3 operator+ (const Vec3 &rhs) const
KOKKOS_INLINE_FUNCTION Vec3 & operator+= (const Vec3 &rhs)
KOKKOS_INLINE_FUNCTION Vec3 operator- (const Vec3 &rhs) const
KOKKOS_INLINE_FUNCTION Vec3 & operator-= (const Vec3 &rhs)
KOKKOS_INLINE_FUNCTION Vec3 operator* (const scalar &rhs) const
KOKKOS_INLINE_FUNCTION Vec3 operator* (const label &rhs) const
KOKKOS_INLINE_FUNCTION Vec3 & operator*= (const scalar &rhs)

Detailed Description

A class for the representation of a 3D Vec3.

Definition at line 24 of file vec3.hpp.

Constructor & Destructor Documentation

◆ Vec3() [1/3]

KOKKOS_INLINE_FUNCTION NeoN::Vec3::Vec3 ( )
inline

Definition at line 29 of file vec3.hpp.

◆ Vec3() [2/3]

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

Definition at line 37 of file vec3.hpp.

◆ Vec3() [3/3]

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

Definition at line 45 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 57 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 64 of file vec3.hpp.

◆ operator()() [1/2]

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

Definition at line 80 of file vec3.hpp.

◆ operator()() [2/2]

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

Definition at line 83 of file vec3.hpp.

◆ operator*() [1/2]

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

Definition at line 129 of file vec3.hpp.

◆ operator*() [2/2]

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

Definition at line 122 of file vec3.hpp.

◆ operator*=()

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

Definition at line 136 of file vec3.hpp.

◆ operator+()

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

Definition at line 92 of file vec3.hpp.

◆ operator+=()

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

Definition at line 98 of file vec3.hpp.

◆ operator-()

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

Definition at line 107 of file vec3.hpp.

◆ operator-=()

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

Definition at line 113 of file vec3.hpp.

◆ operator==()

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

Definition at line 86 of file vec3.hpp.

◆ operator[]() [1/2]

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

Definition at line 74 of file vec3.hpp.

◆ operator[]() [2/2]

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

Definition at line 77 of file vec3.hpp.

◆ size()

sizeType NeoN::Vec3::size ( ) const
inlineconstexpr

Returns the size of the vector.

Returns
The size of the vector

Definition at line 71 of file vec3.hpp.


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