Defines a class which behaves like a mathematical variable. More...
#include "viennamath/compiletime/ct_vector.hpp"#include "viennamath/exception.hpp"#include "viennamath/runtime/constant.hpp"#include "viennamath/runtime/expression_interface.hpp"#include <assert.h>Go to the source code of this file.
Data Structures | |
| class | rt_variable< InterfaceType > |
| Representation of an variable (a variable). If the supplied argument is some vector type, a traits system accesses the id-th component. More... | |
Namespaces | |
| namespace | viennamath |
The main ViennaMath namespace. All types and functions for the user reside here. | |
Functions | |
| template<typename VectorType > | |
| VectorType::value_type | get_from_vector (VectorType const &vec, id_type i) |
| Generic wrapper function for accessing the i-th entry of a vector. Provides a uniform interface for compile-time and run-time vectors. | |
| template<typename T1 > | |
| default_numeric_type | get_from_vector (ct_vector_1< T1 > const &vec, id_type i) |
| Generic wrapper function for accessing the i-th entry of a vector. Provides a uniform interface for compile-time and run-time vectors. | |
| template<typename T1 , typename T2 > | |
| default_numeric_type | get_from_vector (ct_vector_2< T1, T2 > const &vec, id_type i) |
| Generic wrapper function for accessing the i-th entry of a vector. Provides a uniform interface for compile-time and run-time vectors. | |
| template<typename T1 , typename T2 , typename T3 > | |
| default_numeric_type | get_from_vector (ct_vector_3< T1, T2, T3 > const &vec, id_type i) |
| Generic wrapper function for accessing the i-th entry of a vector. Provides a uniform interface for compile-time and run-time vectors. | |
| template<typename InterfaceType > | |
| std::ostream & | operator<< (std::ostream &stream, rt_variable< InterfaceType > const &u) |
| Output stream overload, mostly used for printing an expression to screen. | |
Defines a class which behaves like a mathematical variable.
1.7.1