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...


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 ( )

Definition at line 35 of file vector.hpp.

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

Definition at line 58 of file vector.hpp.

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

Definition at line 37 of file vector.hpp.

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

Definition at line 61 of file vector.hpp.

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

Definition at line 66 of file vector.hpp.

Vector operator/ ( const Type &  s) const

Definition at line 70 of file vector.hpp.

Vector& operator/= ( const Type &  s)

Definition at line 75 of file vector.hpp.

static Vector Origin ( )

Definition at line 41 of file vector.hpp.

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

Definition at line 47 of file vector.hpp.

Friends And Related Function Documentation

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

Definition at line 79 of file vector.hpp.

Member Data Documentation

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