Classes | Namespaces | Typedefs | Functions
Vector.h File Reference
#include <cmath>
#include <iosfwd>
#include "LoopUnroller.h"

Classes

class  PLMD::VectorGeneric< n >
 
Class implementing fixed size vectors of doubles More...
 

Namespaces

 PLMD
 

Typedefs

typedef VectorGeneric< 2 > PLMD::Vector2d
 Alias for two dimensional vectors. More...
 
typedef VectorGeneric< 3 > PLMD::Vector3d
 Alias for three dimensional vectors. More...
 
typedef VectorGeneric< 4 > PLMD::Vector4d
 Alias for four dimensional vectors. More...
 
typedef Vector3d PLMD::Vector
 Alias for three dimensional vectors. More...
 

Functions

template<unsigned n>
VectorGeneric< n > PLMD::operator+ (const VectorGeneric< n > &v1, const VectorGeneric< n > &v2)
 
template<unsigned n>
VectorGeneric< n > PLMD::operator- (const VectorGeneric< n > &v1, const VectorGeneric< n > &v2)
 
template<unsigned n>
VectorGeneric< n > PLMD::operator* (double s, const VectorGeneric< n > &v)
 
template<unsigned n>
VectorGeneric< n > PLMD::operator* (const VectorGeneric< n > &v, double s)
 
template<unsigned n>
VectorGeneric< n > PLMD::operator/ (const VectorGeneric< n > &v, double s)
 
template<unsigned n>
VectorGeneric< n > PLMD::delta (const VectorGeneric< n > &v1, const VectorGeneric< n > &v2)
 
template<unsigned n>
double PLMD::dotProduct (const VectorGeneric< n > &v1, const VectorGeneric< n > &v2)
 
VectorGeneric< 3 > PLMD::crossProduct (const VectorGeneric< 3 > &v1, const VectorGeneric< 3 > &v2)
 
template<unsigned n>
double PLMD::modulo2 (const VectorGeneric< n > &v)
 
template<unsigned n>
double PLMD::modulo (const VectorGeneric< n > &v)
 
template<unsigned n>
std::ostream & PLMD::operator<< (std::ostream &os, const VectorGeneric< n > &v)