Defines compiletime vectors with different numbers of template parameters. More...
#include <ostream>
#include "viennamath/forwards.h"
#include "viennamath/exception.hpp"
Go to the source code of this file.
Data Structures | |
class | ct_vector_1< T0 > |
Compiletime vector with one element. More... | |
class | ct_vector_2< T0, T1 > |
Compiletime vector with one element. More... | |
class | ct_vector_3< T0, T1, T2 > |
Compiletime vector with one element. More... | |
Namespaces | |
namespace | viennamath |
The main ViennaMath namespace. All types and functions for the user reside here. | |
Functions | |
template<typename T0 > | |
std::ostream & | operator<< (std::ostream &stream, ct_vector_1< T0 > const &v) |
Convenience functionality for printing a compiletime vector with one entry to an output stream. | |
template<typename T0 , typename T1 > | |
std::ostream & | operator<< (std::ostream &stream, ct_vector_2< T0, T1 > const &v) |
Convenience functionality for printing a compiletime vector with two entries to an output stream. | |
template<typename T0 , typename T1 , typename T2 > | |
std::ostream & | operator<< (std::ostream &stream, ct_vector_3< T0, T1, T2 > const &v) |
Convenience functionality for printing a compiletime vector with three entries to an output stream. | |
template<typename T0 > | |
ct_vector_1< T0 > | make_vector (T0 const &t0) |
Helper function for creating a compiletime vector with one element. | |
template<typename T0 , typename T1 > | |
ct_vector_2< T0, T1 > | make_vector (T0 const &t0, T1 const &t1) |
Helper function for creating a compiletime vector with two elements. | |
template<typename T0 , typename T1 , typename T2 > | |
ct_vector_3< T0, T1, T2 > | make_vector (T0 const &t0, T1 const &t1, T2 const &t2) |
Helper function for creating a compiletime vector with three elements. |
Defines compiletime vectors with different numbers of template parameters.