O P A R - Open Architecture Particle in Cell Simulation - Version 3.0
Plasma simulations with dust particles
 All Classes Files Functions Variables Friends Macros Groups Pages
Functions
VelOperators

A collection of operators for the Velocity_ class. More...

Functions

template<class T >
Velocity_< T > operator- (const Velocity_< T > &A, T b)
template<class T >
Velocity_< T > operator+ (const Velocity_< T > &A, T b)
template<class T >
Velocity_< T > operator* (const Velocity_< T > &A, T b)
template<class T >
Velocity_< T > operator/ (const Velocity_< T > &A, T b)
template<class T >
Velocity_< T > operator/ (const Velocity_< T > &A, const Velocity_< T > &B)
template<class T >
Velocity_< T > operator- (const Velocity_< T > &A, const Velocity_< T > &B)
template<class T >
Velocity_< T > operator+ (const Velocity_< T > &A, const Velocity_< T > &B)
template<class T1 , class T2 >
double operator* (const Velocity_< T1 > &A, const Velocity_< T2 > &B)
template<class T >
Velocity_< T > & operator*= (Velocity_< T > &A, const Velocity_< T > &B)
template<class T1 , class T2 >
Velocity_< T1 > & operator*= (Velocity_< T1 > &A, const T2 &B)
template<class T >
Velocity_< T > & operator/= (Velocity_< T > &A, const T &B)
template<class T1 , class T2 >
Velocity_< T1 > & operator+= (Velocity_< T1 > &A, const Velocity_< T2 > &B)
template<class T >
Velocity_< T > & operator+= (Velocity_< T > &A, const T &B)
template<class T >
Velocity_< T > operator/ (double A, const Velocity_< T > &B)
template<class T1 , class T2 >
bool operator<= (const Velocity_< T1 > &A, const Velocity_< T2 > &B)
template<class T1 , class T2 >
bool operator>= (const Velocity_< T1 > &A, const Velocity_< T2 > &B)

Detailed Description

A collection of operators for the Velocity_ class.

Defines V1-x, x-V1, V1-V2, V1+x, V1+V2, V1*=x, V1*x, V1/=x, V1/x

The scalar product V1*V2

Nonuniform stretching V1*=V2 and V1/V2

Comparison V1==V2 return true if all components are equal. V1<=V1 (V1>=V2) return true if at least one component of V1 is <= (>=) than the according component in V2


Function Documentation

template<class T >
Velocity_<T> operator* ( const Velocity_< T > &  A,
b 
)
See also:
VelOperators
template<class T1 , class T2 >
double operator* ( const Velocity_< T1 > &  A,
const Velocity_< T2 > &  B 
)
See also:
VelOperators
template<class T >
Velocity_<T>& operator*= ( Velocity_< T > &  A,
const Velocity_< T > &  B 
)
See also:
VelOperators
template<class T1 , class T2 >
Velocity_<T1>& operator*= ( Velocity_< T1 > &  A,
const T2 &  B 
)
See also:
VelOperators
template<class T >
Velocity_<T> operator+ ( const Velocity_< T > &  A,
b 
)
See also:
VelOperators
template<class T >
Velocity_<T> operator+ ( const Velocity_< T > &  A,
const Velocity_< T > &  B 
)
See also:
VelOperators
template<class T1 , class T2 >
Velocity_<T1>& operator+= ( Velocity_< T1 > &  A,
const Velocity_< T2 > &  B 
)
See also:
VelOperators
template<class T >
Velocity_<T>& operator+= ( Velocity_< T > &  A,
const T &  B 
)
See also:
VelOperators
template<class T >
Velocity_<T> operator- ( const Velocity_< T > &  A,
b 
)
See also:
VelOperators
template<class T >
Velocity_<T> operator- ( const Velocity_< T > &  A,
const Velocity_< T > &  B 
)
See also:
VelOperators
template<class T >
Velocity_<T> operator/ ( const Velocity_< T > &  A,
b 
)
See also:
VelOperators
template<class T >
Velocity_<T> operator/ ( const Velocity_< T > &  A,
const Velocity_< T > &  B 
)
See also:
VelOperators
template<class T >
Velocity_<T> operator/ ( double  A,
const Velocity_< T > &  B 
)
See also:
VelOperators
template<class T >
Velocity_<T>& operator/= ( Velocity_< T > &  A,
const T &  B 
)
See also:
VelOperators
template<class T1 , class T2 >
bool operator<= ( const Velocity_< T1 > &  A,
const Velocity_< T2 > &  B 
)
See also:
VelOperators
template<class T1 , class T2 >
bool operator>= ( const Velocity_< T1 > &  A,
const Velocity_< T2 > &  B 
)
See also:
VelOperators