ug4
math_vector.h File Reference
#include <cstddef>
#include <iostream>
#include <algorithm>
#include "../../ug_config.h"
#include "../../types.h"
#include "common/math/misc/math_constants.h"

Go to the source code of this file.

Classes

class  ug::MathVector< N, T >
 a mathematical Vector with N entries. More...
 
class  ug::MathVector< 0, T >
 
class  ug::MathVector< 1, T >
 
class  ug::MathVector< 2, T >
 
class  ug::MathVector< 3, T >
 
class  ug::MathVector< 4, T >
 

Namespaces

 ug
 the ug namespace
 

Functions

template<class TStream , std::size_t N, class T >
void ug::Deserialize (TStream &out, MathVector< N, T > &valOut)
 
template<std::size_t N, typename T >
bool ug::operator!= (const MathVector< N, T > &v, const MathVector< N, T > &w)
 
template<std::size_t N, typename T >
bool ug::operator< (const MathVector< N, T > &v, const MathVector< N, T > &w)
 
template<typename T >
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< 0, T > &v)
 
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< 1 > &v)
 formatted output of MathVector objects: (...,...) More...
 
template<typename T >
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< 1, T > &v)
 
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< 2 > &v)
 formatted output of MathVector objects: (...,...) More...
 
template<typename T >
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< 2, T > &v)
 
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< 3 > &v)
 formatted output of MathVector objects: (...,...) More...
 
template<typename T >
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< 3, T > &v)
 
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< 4 > &v)
 formatted output of MathVector objects: (...,...) More...
 
template<typename T >
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< 4, T > &v)
 
template<std::size_t N, typename T >
std::ostream & ug::operator<< (std::ostream &outStream, const ug::MathVector< N, T > &v)
 
template<typename T >
bool ug::operator== (const MathVector< 0, T > &v, const MathVector< 0, T > &w)
 
template<std::size_t N, typename T >
bool ug::operator== (const MathVector< N, T > &v, const MathVector< N, T > &w)
 
std::istream & ug::read_plain_txt (std::istream &inStream, ug::MathVector< 1 > &v)
 plain text input of MathVectors: read space-separated coordinates More...
 
std::istream & ug::read_plain_txt (std::istream &inStream, ug::MathVector< 2 > &v)
 plain text input of MathVectors: read space-separated coordinates More...
 
std::istream & ug::read_plain_txt (std::istream &inStream, ug::MathVector< 3 > &v)
 plain text input of MathVectors: read space-separated coordinates More...
 
std::istream & ug::read_plain_txt (std::istream &inStream, ug::MathVector< 4 > &v)
 plain text input of MathVectors: read space-separated coordinates More...
 
template<class TStream , std::size_t N, class T >
void ug::Serialize (TStream &out, const MathVector< N, T > &val)
 
std::ostream & ug::write_plain_txt (std::ostream &outStream, const ug::MathVector< 1 > &v)
 plain text output of MathVector objects: space-separated coordinates More...
 
std::ostream & ug::write_plain_txt (std::ostream &outStream, const ug::MathVector< 2 > &v)
 plain text output of MathVector objects: space-separated coordinates More...
 
std::ostream & ug::write_plain_txt (std::ostream &outStream, const ug::MathVector< 3 > &v)
 plain text output of MathVector objects: space-separated coordinates More...
 
std::ostream & ug::write_plain_txt (std::ostream &outStream, const ug::MathVector< 4 > &v)
 plain text output of MathVector objects: space-separated coordinates More...
 
template<std::size_t fromN, std::size_t toN, typename T >
MathVector< toN, T > ug::MathVectorFrom (const MathVector< fromN, T > &v)
 helper method which creates a vector from another vector of different dimensionality More...
 
template<std::size_t N, typename T >
MathVector< N, T > ug::MathVectorFrom (const MathVector< N, T > &v)
 helper method which creates a vector from another vector of different dimensionality More...