Memosa-FVM  0.2
Gradient.h File Reference
#include "Vector.h"
Include dependency graph for Gradient.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Gradient< T >
 

Functions

template<class T >
ostream & operator<< (ostream &os, const Gradient< T > &v)
 
template<class T >
Gradient< T > operator+ (const Gradient< T > &a, const Gradient< T > &b)
 
template<class T >
Gradient< T > operator* (const Gradient< T > &a, const typename NumTypeTraits< T >::T_Scalar &s)
 
template<class T >
operator* (const Gradient< T > &a, const typename Gradient< T >::Coord &v)
 
template<class T >
Gradient< T > operator* (const Gradient< T > &a, const Gradient< T > &b)
 
template<class T >
Gradient< T > operator/ (const Gradient< T > &a, const typename NumTypeTraits< T >::T_Scalar &s)
 
template<class T >
Gradient< T > operator/ (const Gradient< T > &a, const int &s)
 
template<class T >
Gradient< T > operator- (const Gradient< T > &a)
 

Function Documentation

template<class T >
Gradient<T> operator* ( const Gradient< T > &  a,
const typename NumTypeTraits< T >::T_Scalar &  s 
)

Definition at line 219 of file Gradient.h.

220 {
221  return Gradient<T>(a) *= s;
222 }
template<class T >
T operator* ( const Gradient< T > &  a,
const typename Gradient< T >::Coord &  v 
)

Definition at line 226 of file Gradient.h.

227 {
228  return Gradient<T>(a) *= v;
229 }
template<class T >
Gradient<T> operator* ( const Gradient< T > &  a,
const Gradient< T > &  b 
)

Definition at line 234 of file Gradient.h.

235 {
236  return Gradient<T>(a) *= b;
237 }
template<class T >
Gradient<T> operator+ ( const Gradient< T > &  a,
const Gradient< T > &  b 
)

Definition at line 212 of file Gradient.h.

213 {
214  return Gradient<T>(a) += b;
215 }
template<class T >
Gradient<T> operator- ( const Gradient< T > &  a)

Definition at line 256 of file Gradient.h.

257 {
258  return -Gradient<T>(a);
259 }
template<class T >
Gradient<T> operator/ ( const Gradient< T > &  a,
const typename NumTypeTraits< T >::T_Scalar &  s 
)

Definition at line 241 of file Gradient.h.

242 {
243  return Gradient<T>(a) /= s;
244 }
template<class T >
Gradient<T> operator/ ( const Gradient< T > &  a,
const int &  s 
)

Definition at line 249 of file Gradient.h.

250 {
251  return Gradient<T>(a) /= typename NumTypeTraits<T>::T_Scalar(s);
252 }
template<class T >
ostream& operator<< ( ostream &  os,
const Gradient< T > &  v 
)
inline

Definition at line 203 of file Gradient.h.

References Gradient< T >::print().

205 {
206  v.print(os);
207  return os;
208 }
void print(ostream &os) const
Definition: Gradient.h:169