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