33 : x(0), y(0), z(0), v(0), w(0), u(0) {
37 : x(x), y(y), z(z), v(v), w(w), u(0) {
42 return other.
x == x && other.
y == y && other.
z == z && other.
v == v
43 && other.
w == w && other.
u ==
u;
45 #if __cplusplus > 199711L || WIN32 46 std::vector<T> toStdVector() {
51 return std::vector<T>({
x,
y,
z,
v,
w, u });
59 return vec6<S>(S(x), S(y), S(z), S(v), S(w), S(u));
82 return x * other.
x + y * other.
y + z * other.
z + v * other.
v + w * other.
w + u *
114 return vec6<T>(a.
x * scalar, a.
y * scalar, a.
z * scalar, a.
v * scalar,
115 a.
w * scalar, a.
u * scalar);
135 return vec6<T>(a.
x / scalar, a.
y / scalar, a.
z / scalar, a.
v / scalar,
136 a.
w / scalar, a.
u / scalar);
158 for (
int i = 0; i < 6; ++i) {
171 std::stringstream ss;
T y
Definition: vec6.hpp:26
__device__ __host__ vec1< T > operator-(const vec1< T > &a, const vec1< T > &b)
Definition: vec1.hpp:140
__device__ static __host__ constexpr size_t size()
Definition: vec6.hpp:89
T x
Definition: vec6.hpp:25
__host__ std::string str() const
Definition: vec6.hpp:170
__device__ __host__ const T & operator[](size_t i) const
Definition: vec6.hpp:65
__device__ __host__ vec1< T > operator*(T scalar, const vec1< T > &a)
Definition: vec1.hpp:131
T u
Definition: vec6.hpp:30
__device__ __host__ vec6()
Definition: vec6.hpp:32
__device__ __host__ vec6(T x, T y, T z, T v, T w, T u)
Definition: vec6.hpp:36
#define __host__
Definition: types.hpp:46
__device__ __host__ T dot(const vec6< T > &other) const
Definition: vec6.hpp:81
__device__ __host__ bool operator==(const vec6 &other) const
Definition: vec6.hpp:41
__device__ __host__ vec1< T > operator+(const vec1< T > &a, const vec1< S > &b)
Definition: vec1.hpp:159
T v
Definition: vec6.hpp:28
__device__ __host__ vec6< S > convert()
Definition: vec6.hpp:58
Various utilities for mpi and cuda.
Definition: Factory.hpp:3
#define __device__
Definition: types.hpp:45
__device__ __host__ T & operator[](size_t i)
Definition: vec6.hpp:73
__device__ __host__ vec1< T > operator/(const vec1< T > &a, const vec1< T > &b)
Definition: vec1.hpp:121
T z
Definition: vec6.hpp:27
std::ostream & operator<<(std::ostream &os, const alsutils::vec6< T > &vec)
Definition: vec6.hpp:154
T w
Definition: vec6.hpp:29