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

#include <Vector.hh>

Inheritance diagram for Garfield::Vec1Impl< type >:
Garfield::Vector< type, 1 >

Public Member Functions

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

Definition at line 63 of file Vector.hh.

Constructor & Destructor Documentation

◆ Vec1Impl() [1/2]

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

◆ Vec1Impl() [2/2]

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

Definition at line 67 of file Vector.hh.

67: 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::Vec1Impl< type >::x ( ) const
inlinenoexcept

Definition at line 69 of file Vector.hh.

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

◆ x() [2/2]

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

Definition at line 68 of file Vector.hh.

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

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