Alsvinn  0.5.3
The fast FVM simulator with UQ support
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
alsutils::vec6< T > Struct Template Reference

#include <alsutils/vec6.hpp>

Public Member Functions

__device__ __host__ vec6 ()
 
__device__ __host__ vec6 (T x, T y, T z, T v, T w, T u)
 
__device__ __host__ bool operator== (const vec6 &other) const
 
template<class S >
__device__ __host__ vec6< S > convert ()
 
__device__ __host__ const T & operator[] (size_t i) const
 
__device__ __host__ T & operator[] (size_t i)
 
__device__ __host__dot (const vec6< T > &other) const
 
__host__ std::string str () const
 

Static Public Member Functions

__device__ static __host__ constexpr size_t size ()
 

Public Attributes

x
 
y
 
z
 
v
 
w
 
u
 

Detailed Description

template<class T>
struct alsutils::vec6< T >

Small vector class to hold 3D data

Constructor & Destructor Documentation

◆ vec6() [1/2]

template<class T>
__device__ __host__ alsutils::vec6< T >::vec6 ( )
inline

◆ vec6() [2/2]

template<class T>
__device__ __host__ alsutils::vec6< T >::vec6 ( x,
y,
z,
v,
w,
u 
)
inline

Member Function Documentation

◆ convert()

template<class T>
template<class S >
__device__ __host__ vec6<S> alsutils::vec6< T >::convert ( )
inline

Converts the vector to the other type

◆ dot()

template<class T>
__device__ __host__ T alsutils::vec6< T >::dot ( const vec6< T > &  other) const
inline

Computes the dot (scalar) product

◆ operator==()

template<class T>
__device__ __host__ bool alsutils::vec6< T >::operator== ( const vec6< T > &  other) const
inline

◆ operator[]() [1/2]

template<class T>
__device__ __host__ const T& alsutils::vec6< T >::operator[] ( size_t  i) const
inline

Returns the i-th component of the vector.

◆ operator[]() [2/2]

template<class T>
__device__ __host__ T& alsutils::vec6< T >::operator[] ( size_t  i)
inline

Returns the i-th component of the vector.

◆ size()

template<class T>
__device__ static __host__ constexpr size_t alsutils::vec6< T >::size ( )
inlinestatic

Returns 5 (number of components)

◆ str()

template<class T >
__host__ std::string alsutils::vec6< T >::str ( ) const
inline

Member Data Documentation

◆ u

template<class T>
T alsutils::vec6< T >::u

◆ v

template<class T>
T alsutils::vec6< T >::v

◆ w

template<class T>
T alsutils::vec6< T >::w

◆ x

template<class T>
T alsutils::vec6< T >::x

◆ y

template<class T>
T alsutils::vec6< T >::y

◆ z

template<class T>
T alsutils::vec6< T >::z

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