Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vector< D, Type > Class Template Reference

Detailed Description

template<size_t D, typename Type = double>
class thrill::common::Vector< D, Type >

A compile-time fixed-length D-dimensional point with double precision.

Definition at line 27 of file vector.hpp.

+ Inheritance diagram for Vector< D, Type >:

#include <vector.hpp>

Public Types

using type = Type
 

Public Member Functions

Type Distance (const Vector &b) const
 
Type DistanceSquare (const Vector &b) const
 
Vector operator+ (const Vector &b) const
 
Vectoroperator+= (const Vector &b)
 
Vector operator/ (const Type &s) const
 
Vectoroperator/= (const Type &s)
 

Static Public Member Functions

static size_t dim ()
 
static Vector Make (size_t D_)
 
static Vector Origin ()
 
template<typename Distribution , typename Generator >
static Vector Random (size_t dim, Distribution &dist, Generator &gen)
 

Public Attributes

Type x [D]
 coordinates array More...
 

Friends

std::ostream & operator<< (std::ostream &os, const Vector &a)
 

Member Typedef Documentation

using type = Type

Definition at line 33 of file vector.hpp.

Member Function Documentation

static size_t dim ( )
inlinestatic

Definition at line 35 of file vector.hpp.

Type Distance ( const Vector< D, Type > &  b) const
inline

Definition at line 58 of file vector.hpp.

Type DistanceSquare ( const Vector< D, Type > &  b) const
inline
static Vector Make ( size_t  D_)
inlinestatic

Definition at line 37 of file vector.hpp.

Vector operator+ ( const Vector< D, Type > &  b) const
inline

Definition at line 61 of file vector.hpp.

Vector& operator+= ( const Vector< D, Type > &  b)
inline

Definition at line 66 of file vector.hpp.

Vector operator/ ( const Type &  s) const
inline

Definition at line 70 of file vector.hpp.

Vector& operator/= ( const Type &  s)
inline

Definition at line 75 of file vector.hpp.

static Vector Origin ( )
inlinestatic

Definition at line 41 of file vector.hpp.

static Vector Random ( size_t  dim,
Distribution &  dist,
Generator &  gen 
)
inlinestatic

Definition at line 47 of file vector.hpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Vector< D, Type > &  a 
)
friend

Definition at line 79 of file vector.hpp.

Member Data Documentation


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