Thrill
0.1
|
A variable-length D-dimensional point with double precision.
Definition at line 123 of file vector.hpp.
#include <vector.hpp>
Public Types | |
using | type = Type |
using | TypeVector = std::vector< Type > |
Public Member Functions | |
VVector (size_t D=0) | |
VVector (TypeVector &&v) | |
size_t | dim () const |
Type | Distance (const VVector &b) const |
Type | DistanceSquare (const VVector &b) const |
Type | dot (const VVector &b) const |
VVector | fill (const Type init_val) |
Type | Norm () const |
VVector | operator+ (const VVector &b) const |
VVector & | operator+= (const VVector &b) |
VVector | operator- (const VVector &b) const |
VVector | operator/ (const Type &s) const |
VVector & | operator/= (const Type &s) |
template<typename Archive > | |
void | serialize (Archive &archive) |
serialization method for cereal. More... | |
size_t | size () const |
Static Public Member Functions | |
static VVector | Make (size_t D) |
template<typename Distribution , typename Generator > | |
static VVector | Random (size_t D, Distribution &dist, Generator &gen) |
Public Attributes | |
TypeVector | x |
coordinates array More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const VVector &a) |
using type = Type |
Definition at line 128 of file vector.hpp.
using TypeVector = std::vector<Type> |
Definition at line 126 of file vector.hpp.
|
inlineexplicit |
Definition at line 133 of file vector.hpp.
|
inlineexplicit |
Definition at line 134 of file vector.hpp.
|
inline |
Definition at line 136 of file vector.hpp.
|
inline |
Definition at line 159 of file vector.hpp.
References Vector< D, Type >::DistanceSquare().
|
inline |
Definition at line 152 of file vector.hpp.
References VVector< Type >::x.
|
inline |
Definition at line 193 of file vector.hpp.
References VVector< Type >::x.
|
inline |
Definition at line 142 of file vector.hpp.
|
inlinestatic |
Definition at line 139 of file vector.hpp.
|
inline |
Definition at line 162 of file vector.hpp.
Definition at line 167 of file vector.hpp.
References VVector< Type >::x.
Definition at line 173 of file vector.hpp.
References VVector< Type >::x.
Definition at line 178 of file vector.hpp.
References VVector< Type >::x.
|
inline |
Definition at line 184 of file vector.hpp.
References VVector< Type >::x.
|
inline |
Definition at line 189 of file vector.hpp.
|
inlinestatic |
Definition at line 147 of file vector.hpp.
References gen_data::D, and VVector< Type >::x.
|
inline |
serialization method for cereal.
Definition at line 206 of file vector.hpp.
|
inline |
Definition at line 137 of file vector.hpp.
|
friend |
Definition at line 198 of file vector.hpp.
coordinates array
Definition at line 131 of file vector.hpp.
Referenced by VVector< Type >::DistanceSquare(), VVector< Type >::dot(), thrill::common::operator*(), VVector< Type >::operator+(), VVector< Type >::operator+=(), VVector< Type >::operator-(), VVector< Type >::operator/(), and VVector< Type >::Random().