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

#include <Vector.hh>

Inheritance diagram for Garfield::Vec2Impl< type >:
Garfield::Vector< type, 2 >

Public Member Functions

 Vec2Impl ()=default
template<typename... xs>
__host__ __device__ Vec2Impl (xs... values)
__host__ __device__ type & x () noexcept
__host__ __device__ type x () const noexcept
__host__ __device__ type & y () noexcept
__host__ __device__ type y () const noexcept
Public Member Functions inherited from Garfield::Vector< type, 2 >
__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::Vec2Impl< type >

Definition at line 73 of file Vector.hh.

Constructor & Destructor Documentation

◆ Vec2Impl() [1/2]

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

◆ Vec2Impl() [2/2]

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

Definition at line 77 of file Vector.hh.

77: 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::Vec2Impl< type >::x ( ) const
inlinenoexcept

Definition at line 79 of file Vector.hh.

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

◆ x() [2/2]

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

Definition at line 78 of file Vector.hh.

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

◆ y() [1/2]

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

Definition at line 81 of file Vector.hh.

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

◆ y() [2/2]

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

Definition at line 80 of file Vector.hh.

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

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