Back to index

Classes | Defines | Functions
function_extra.hpp File Reference
#include "function.hpp"
#include "vector.hpp"
#include "polynomial.hpp"

Go to the source code of this file.


class  pw_function_rep
class  vector_function_rep
class  polynomial_function_rep< T >


#define TMPL   template<typename F, typename T>
#define V   typename properties<F>::index_type
#define C   typename properties<F>::scalar_type


TMPL function< F, Tpw_function (vector< function< F, T > > v, bool jump_flag=false)
template<typename T >
ball< vector< T > > as_ball (vector< ball< T > > v)
TMPL function< F, vector< T > > vector_function (vector< function< F, T > > v)
template<typename T >
function< T, Tpolynomial_function (polynomial< T > p)

Define Documentation

#define C   typename properties<F>::scalar_type

Definition at line 19 of file function_extra.hpp.


Definition at line 21 of file function_extra.hpp.

#define TMPL   template<typename F, typename T>

Definition at line 17 of file function_extra.hpp.

#define V   typename properties<F>::index_type

Definition at line 18 of file function_extra.hpp.

Function Documentation

template<typename T >
ball<vector<T> > as_ball ( vector< ball< T > >  v)

Definition at line 80 of file function_extra.hpp.

  typedef typename properties<T>::norm_type radius_type;
  int i, n= N(v);
  vector<T> c (T(0), n);
  vector<radius_type> r (radius_type(0), n);
  for (i=0; i<n; i++) {
    c[i]= center (v[i]);
    r[i]= radius (v[i]);
  return ball<vector<T> > (c, norm (r));

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T >
function< T, T > polynomial_function ( polynomial< T p) [inline]

Definition at line 156 of file function_extra.hpp.

  return tm_new<polynomial_function_rep<T> > (p);
TMPL function< F, T > pw_function ( vector< function< F, T > >  v,
bool  jump_flag = false 
) [inline]

Definition at line 71 of file function_extra.hpp.

  return tm_new<pw_function_rep<F,T> > (v, jump_flag);

Here is the caller graph for this function:

TMPL function< F, vector< T > > vector_function ( vector< function< F, T > >  v) [inline]

Definition at line 125 of file function_extra.hpp.

  return tm_new<vector_function_rep<F,T> > (v);

Here is the caller graph for this function: