OSHUN  beta
Arbitrary Order Spherical-Harmonic 1D-3P Vlasov-Fokker-Planck-Maxwell code
Algorithms::Axis< T > Class Template Reference

#include <lib-algorithms.h>

Public Member Functions

 Axis (const T min=0, const T max=0, const size_t N=1)
 
 Axis (const Axis &other)
 
 ~Axis ()
 

Data Fields

valarray< T > * v
 

Detailed Description

template<typename T>
class Algorithms::Axis< T >

Definition at line 46 of file lib-algorithms.h.

Constructor & Destructor Documentation

◆ Axis() [1/2]

template<typename T >
Algorithms::Axis< T >::Axis ( const T  min = 0,
const T  max = 0,
const size_t  N = 1 
)
inline

Definition at line 51 of file lib-algorithms.h.

References Algorithms::MakeAxis().

51  {
52  if (N > 1) {
53  v = new valarray<T>(MakeAxis(min,max,N));
54  }
55  else v = NULL;
56  }
valarray< T > MakeAxis(const T min, const T max, const size_t N)
valarray< T > * v
Here is the call graph for this function:

◆ Axis() [2/2]

template<typename T >
Algorithms::Axis< T >::Axis ( const Axis< T > &  other)
inline

Definition at line 59 of file lib-algorithms.h.

References Algorithms::Axis< T >::v.

59  {
60  if (other.v != NULL) {
61  v = new valarray<T>(*(other.v));
62  }
63  else v = NULL;
64  }
valarray< T > * v

◆ ~Axis()

template<typename T >
Algorithms::Axis< T >::~Axis ( )
inline

Definition at line 67 of file lib-algorithms.h.

References Algorithms::Axis< T >::v.

67 { delete v; }
valarray< T > * v

Field Documentation

◆ v


The documentation for this class was generated from the following file: