#include <Point.h>
Public Types | |
| typedef boost::array< double, d > | super |
Public Member Functions | |
| Point () | |
| Point (double v) | |
| Point (const super &t) | |
| Point (const Point &p) | |
| Point (const double *v, size_t n) | |
| template<class iterator> | |
| Point (iterator begin, const iterator &end) | |
| void | assign (double v) |
| void | operator+= (const Point &p) |
| Point | operator+ (const Point &p) const |
| void | operator-= (const Point &p) |
| Point | operator- (const Point &p) const |
| void | operator *= (double x) |
| Point | operator * (double x) const |
| void | operator/= (double x) |
| Point | operator/ (double x) const |
| double | dot (const Point &p) const |
| double | dist2 (const Point &q) const |
| double | norm2 () const |
| double | norm1 () const |
| bool | bitwiseEqual (const Point &other) const |
| std::string | toString () const |
Static Public Member Functions | |
| static unsigned | dim () |
| static Point | unit (unsigned j) |
| static Point | allones () |
| static Point | unitrand () |
| static Point | randPoint (double max) |
Static Public Attributes | |
| static const unsigned | dimension = d |
|
|||||
|
|
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||
|
|
1.4.6