Public Types | Public Member Functions

op_rt_integral< InterfaceType > Class Template Reference

A unary operation defining an integral over an interval. More...

#include <integral.hpp>

Public Types

typedef InterfaceType interface_type

Public Member Functions

 op_rt_integral ()
 op_rt_integral (viennamath::rt_interval< InterfaceType > const &interv, viennamath::rt_variable< InterfaceType > const &var)
 Creates the integral operation.
template<id_type id>
 op_rt_integral (viennamath::rt_interval< InterfaceType > const &interv, viennamath::ct_variable< id > const &var)
 Creates the integral operation.
std::string str () const
 Returns a string representation of the integral operation.
NumericT apply (NumericT value) const
 Interface requirement: Applies the integral operation. No symbolic integration at runtime available, thus an exception is thrown.
bool can_simplify () const
 Interface requirement: A integral operation cannot be optimized (at least for now).
viennamath::rt_interval
< InterfaceType > const & 
interval () const
viennamath::rt_variable
< InterfaceType > const & 
variable () const

Detailed Description

template<typename InterfaceType>
class viennamath::op_rt_integral< InterfaceType >

A unary operation defining an integral over an interval.


Member Typedef Documentation

typedef InterfaceType interface_type

Constructor & Destructor Documentation

op_rt_integral (  )  [inline]
op_rt_integral ( viennamath::rt_interval< InterfaceType > const &  interv,
viennamath::rt_variable< InterfaceType > const &  var 
) [inline]

Creates the integral operation.

Parameters:
interv A runtime interval
var The integration variable (runtime)
op_rt_integral ( viennamath::rt_interval< InterfaceType > const &  interv,
viennamath::ct_variable< id > const &  var 
) [inline]

Creates the integral operation.

Parameters:
interv A runtime interval
var The integration variable (compiletime)

Member Function Documentation

NumericT apply ( NumericT  value  )  const [inline]

Interface requirement: Applies the integral operation. No symbolic integration at runtime available, thus an exception is thrown.

bool can_simplify (  )  const [inline]

Interface requirement: A integral operation cannot be optimized (at least for now).

viennamath::rt_interval<InterfaceType> const& interval (  )  const [inline]
std::string str (  )  const [inline]

Returns a string representation of the integral operation.

viennamath::rt_variable<InterfaceType> const& variable (  )  const [inline]

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