Garfield 0.3
Toolkit for the detailed simulation of particle detectors based on ionization measurement in gases and semiconductors
Loading...
Searching...
No Matches
Garfield::Vec3Impl< type > Class Template Reference

#include <Vector.hh>

Inheritance diagram for Garfield::Vec3Impl< type >:
Garfield::Vector< type, 3 >

Public Member Functions

 Vec3Impl ()=default
template<typename... xs>
__host__ __device__ Vec3Impl (xs... values)
__host__ __device__ type & x () noexcept
__host__ __device__ type x () const noexcept
__host__ __device__ type & y () noexcept
__host__ __device__ type y () const noexcept
__host__ __device__ type & z () noexcept
__host__ __device__ type z () const noexcept
Public Member Functions inherited from Garfield::Vector< type, 3 >
__host__ __device__ Vector (Args &&... args)
__host__ __device__ Vector operator* (const double &i)
__host__ __device__ Vector operator/ (const double &i)
__host__ __device__ Vector operator+ (const Vector< T, D > &vec)
__host__ __device__ Vector operator- (const Vector< T, D > &vec)

Detailed Description

template<typename type>
class Garfield::Vec3Impl< type >

Definition at line 85 of file Vector.hh.

Constructor & Destructor Documentation

◆ Vec3Impl() [1/2]

template<typename type>
Garfield::Vec3Impl< type >::Vec3Impl ( )
default

◆ Vec3Impl() [2/2]

template<typename type>
template<typename... xs>
__host__ __device__ Garfield::Vec3Impl< type >::Vec3Impl ( xs... values)
inline

Definition at line 89 of file Vector.hh.

89: Vector<type, 3>({values...}) {}
__host__ __device__ Vector(Args &&... args)
Definition Vector.hh:25

Member Function Documentation

◆ x() [1/2]

template<typename type>
__host__ __device__ type Garfield::Vec3Impl< type >::x ( ) const
inlinenoexcept

Definition at line 91 of file Vector.hh.

91{ return this->operator[](0); }

◆ x() [2/2]

template<typename type>
__host__ __device__ type & Garfield::Vec3Impl< type >::x ( )
inlinenoexcept

Definition at line 90 of file Vector.hh.

90{ return this->operator[](0); }

◆ y() [1/2]

template<typename type>
__host__ __device__ type Garfield::Vec3Impl< type >::y ( ) const
inlinenoexcept

Definition at line 93 of file Vector.hh.

93{ return this->operator[](1); }

◆ y() [2/2]

template<typename type>
__host__ __device__ type & Garfield::Vec3Impl< type >::y ( )
inlinenoexcept

Definition at line 92 of file Vector.hh.

92{ return this->operator[](1); }

◆ z() [1/2]

template<typename type>
__host__ __device__ type Garfield::Vec3Impl< type >::z ( ) const
inlinenoexcept

Definition at line 95 of file Vector.hh.

95{ return this->operator[](2); }

◆ z() [2/2]

template<typename type>
__host__ __device__ type & Garfield::Vec3Impl< type >::z ( )
inlinenoexcept

Definition at line 94 of file Vector.hh.

94{ return this->operator[](2); }

The documentation for this class was generated from the following file:
  • /builds/garfield/docs/source/Include/Garfield/Vector.hh