Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
#include <alsutils/vec4.hpp>
Public Member Functions | |
__device__ __host__ | vec4 () |
__device__ __host__ | vec4 (T x, T y, T z, T v) |
__device__ __host__ | vec4 (T t) |
__device__ __host__ | vec4 (T x, vec2< T > y, T z) |
__device__ __host__ | vec4 (const vec4< T &> &other) |
template<class S > | |
__device__ __host__ vec4 & | operator= (const vec4< S > &other) |
__device__ __host__ bool | operator== (const vec4 &other) const |
template<class S > | |
__device__ __host__ vec4< S > | convert () |
__device__ __host__ const T & | operator[] (size_t i) const |
__device__ __host__ T & | operator[] (size_t i) |
__device__ __host__ T | dot (const vec4< T > &other) const |
template<class S > | |
__device__ __host__ vec4< T > & | operator+= (const vec4< S > &b) |
__host__ std::string | str () const |
Static Public Member Functions | |
__device__ static __host__ constexpr size_t | size () |
Public Attributes | |
T | x |
T | y |
T | z |
T | v |
Small vector class to hold 3D data
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Converts the vector to the other type
|
inline |
Computes the dot (scalar) product
|
inline |
|
inline |
|
inline |
|
inline |
Returns the i-th component of the vector.
|
inline |
Returns the i-th component of the vector.
|
inlinestatic |
Returns 5 (number of components)
|
inline |
T alsutils::vec4< T >::v |
T alsutils::vec4< T >::x |
T alsutils::vec4< T >::y |
T alsutils::vec4< T >::z |