NeoFOAM
WIP Prototype of a modern OpenFOAM core
|
A class for the representation of a 3D Vector. More...
#include <vector.hpp>
Public Member Functions | |
KOKKOS_INLINE_FUNCTION | Vector () |
KOKKOS_INLINE_FUNCTION | Vector (scalar x, scalar y, scalar z) |
scalar * | data () |
Returns pointer to the data of the vector. | |
const scalar * | data () const |
Returns pointer to the data of the vector. | |
constexpr size_t | size () const |
Returns the size of the vector. | |
KOKKOS_INLINE_FUNCTION scalar & | operator[] (const size_t i) |
KOKKOS_INLINE_FUNCTION scalar | operator[] (const size_t i) const |
KOKKOS_INLINE_FUNCTION scalar & | operator() (const size_t i) |
KOKKOS_INLINE_FUNCTION scalar | operator() (const size_t i) const |
KOKKOS_INLINE_FUNCTION bool | operator== (const Vector &rhs) const |
KOKKOS_INLINE_FUNCTION Vector | operator+ (const Vector &rhs) const |
KOKKOS_INLINE_FUNCTION Vector & | operator+= (const Vector &rhs) |
KOKKOS_INLINE_FUNCTION Vector | operator- (const Vector &rhs) const |
KOKKOS_INLINE_FUNCTION Vector & | operator-= (const Vector &rhs) |
KOKKOS_INLINE_FUNCTION Vector | operator* (const scalar &rhs) const |
KOKKOS_INLINE_FUNCTION Vector | operator* (const label &rhs) const |
KOKKOS_INLINE_FUNCTION Vector & | operator*= (const scalar &rhs) |
A class for the representation of a 3D Vector.
Definition at line 20 of file vector.hpp.
|
inline |
Definition at line 25 of file vector.hpp.
Definition at line 33 of file vector.hpp.
|
inline |
Returns pointer to the data of the vector.
Definition at line 45 of file vector.hpp.
|
inline |
Returns pointer to the data of the vector.
Definition at line 52 of file vector.hpp.
Definition at line 68 of file vector.hpp.
Definition at line 71 of file vector.hpp.
Definition at line 117 of file vector.hpp.
Definition at line 110 of file vector.hpp.
Definition at line 124 of file vector.hpp.
Definition at line 80 of file vector.hpp.
Definition at line 86 of file vector.hpp.
Definition at line 95 of file vector.hpp.
Definition at line 101 of file vector.hpp.
|
inline |
Definition at line 74 of file vector.hpp.
Definition at line 62 of file vector.hpp.
Definition at line 65 of file vector.hpp.
|
inlineconstexpr |
Returns the size of the vector.
Definition at line 59 of file vector.hpp.