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::vec5< T > Struct Template Reference

#include <alsutils/vec5.hpp>

Public Member Functions

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

Static Public Member Functions

__device__ static __host__ constexpr size_t size ()
 

Public Attributes

x
 
y
 
z
 
v
 
w
 

Detailed Description

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

Small vector class to hold 3D data

Constructor & Destructor Documentation

◆ vec5() [1/5]

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

◆ vec5() [2/5]

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

◆ vec5() [3/5]

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

◆ vec5() [4/5]

template<class T>
__device__ __host__ alsutils::vec5< T >::vec5 ( x,
vec3< T >  y,
z 
)
inline

◆ vec5() [5/5]

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

Member Function Documentation

◆ convert()

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

Converts the vector to the other type

◆ dot()

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

Computes the dot (scalar) product

◆ operator+=()

template<class T>
template<class S >
__device__ __host__ vec5<T>& alsutils::vec5< T >::operator+= ( const vec5< S > &  b)
inline

◆ operator=()

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

◆ operator==()

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

◆ operator[]() [1/2]

template<class T>
__device__ __host__ const T& alsutils::vec5< 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::vec5< 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::vec5< T >::size ( )
inlinestatic

Returns 5 (number of components)

◆ str()

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

Member Data Documentation

◆ v

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

◆ w

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

◆ x

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

◆ y

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

◆ z

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

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