Public Types | Public Member Functions

ct_variable< id > Struct Template Reference

Representation of a mathematical variable. If the supplied argument is some vector type, a traits system accesses the id-th component. More...

#include <ct_variable.hpp>

Public Types

typedef default_numeric_type numeric_type

Public Member Functions

 ct_variable ()
std::ostream & operator<< (std::ostream &stream) const
template<typename ScalarType >
rt_constant< ScalarType > operator() (rt_constant< ScalarType > const &other) const
template<long value>
long operator() (ct_constant< value > const &other) const
template<typename VectorType >
variable_traits< VectorType,
id >::return_type 
operator() (VectorType const &v) const

Detailed Description

template<id_type id>
struct viennamath::ct_variable< id >

Representation of a mathematical variable. If the supplied argument is some vector type, a traits system accesses the id-th component.

Template Parameters:
id the component of the vector for which 'variable' is evaluated

Member Typedef Documentation


Constructor & Destructor Documentation

ct_variable (  )  [inline, explicit]

Member Function Documentation

rt_constant<ScalarType> operator() ( rt_constant< ScalarType > const &  other  )  const [inline]
variable_traits<VectorType, id>::return_type operator() ( VectorType const &  v  )  const [inline]
long operator() ( ct_constant< value > const &  other  )  const [inline]
std::ostream& operator<< ( std::ostream &  stream  )  const [inline]

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