![]() |
rasdaman client API 10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
Class r_PointDouble represents an n-dimensional point of double coordinates. More...
#include <pointdouble.hh>
Public Member Functions | |
| r_PointDouble (r_Dimension) | |
| constructor getting dimensionality for stream initializing | |
| r_PointDouble (r_Dimension dim, double value) | |
| r_PointDouble (const r_Point &pt) | |
| r_PointDouble (const std::vector< double > &content) | |
| r_PointDouble (const r_PointDouble &vectorArg) | |
| copy constructor | |
| ~r_PointDouble () | |
| destructor: cleanup dynamic memory | |
| double | operator[] (size_t) const |
| subscriptor for read access | |
| double & | operator[] (size_t) |
| subscriptor for write access | |
| const r_PointDouble & | operator= (const r_PointDouble &) |
| assignment: cleanup + copy | |
| int | compare_with (const r_PointDouble &p) const |
| compares this point with the given point. | |
| bool | operator== (const r_PointDouble &vectorArg) const |
| Returns 0 if this == p, -1 if this < p, 1 if this > p (considering the coordinates in lexicographic order). | |
| bool | operator!= (const r_PointDouble &vectorArg) const |
| bool | operator< (const r_PointDouble &vectorArg) const |
| r_PointDouble | operator+ (const r_PointDouble &vectorArg) const |
| Two points are equal if they have the same number of dimensions and the same values. | |
| r_PointDouble | operator- (const r_PointDouble &vectorArg) const |
| std::vector subtraction | |
| r_PointDouble | operator* (const r_PointDouble &vectorArg) const |
| diagonal extension of multiplication across the cartesian product | |
| r_PointDouble | operator* (double scalarArg) const |
| scalar multiplication | |
| r_PointDouble & | operator+= (const r_PointDouble &a) noexcept(false) |
| Same as above but of the form PointA op= PointB; PointA is modified in place. | |
| r_PointDouble & | operator-= (const r_PointDouble &a) noexcept(false) |
| r_PointDouble & | operator*= (const r_PointDouble &a) noexcept(false) |
| r_PointDouble & | operator*= (double a) noexcept |
| double | dotProduct (const r_PointDouble &r) const |
| scalar product | |
| r_Dimension | dimension () const |
| same as std::vector::size() | |
| void | print_status (std::ostream &s) const |
| writes the state of the object to the specified stream | |
| const std::vector< double > & | getVectorContent () const |
| returns the stored vector | |
| r_Point | toIntPoint () const |
| converts the stored vector to an r_Point (integer vertices) | |
Class r_PointDouble represents an n-dimensional point of double coordinates.
|
explicit |
constructor getting dimensionality for stream initializing
| r_PointDouble::r_PointDouble | ( | r_Dimension | dim, |
| double | value | ||
| ) |
|
explicit |
|
explicit |
| r_PointDouble::r_PointDouble | ( | const r_PointDouble & | vectorArg | ) |
copy constructor
| r_PointDouble::~r_PointDouble | ( | ) |
destructor: cleanup dynamic memory
| int r_PointDouble::compare_with | ( | const r_PointDouble & | p | ) | const |
compares this point with the given point.
| r_Dimension r_PointDouble::dimension | ( | ) | const |
same as std::vector::size()
| double r_PointDouble::dotProduct | ( | const r_PointDouble & | r | ) | const |
scalar product
| const std::vector< double > & r_PointDouble::getVectorContent | ( | ) | const |
returns the stored vector
| bool r_PointDouble::operator!= | ( | const r_PointDouble & | vectorArg | ) | const |
| r_PointDouble r_PointDouble::operator* | ( | const r_PointDouble & | vectorArg | ) | const |
diagonal extension of multiplication across the cartesian product
| r_PointDouble r_PointDouble::operator* | ( | double | scalarArg | ) | const |
scalar multiplication
| r_PointDouble & r_PointDouble::operator*= | ( | const r_PointDouble & | a | ) |
|
noexcept |
| r_PointDouble r_PointDouble::operator+ | ( | const r_PointDouble & | vectorArg | ) | const |
Two points are equal if they have the same number of dimensions and the same values.
std::vector addition
| r_PointDouble & r_PointDouble::operator+= | ( | const r_PointDouble & | a | ) |
Same as above but of the form PointA op= PointB; PointA is modified in place.
| r_PointDouble r_PointDouble::operator- | ( | const r_PointDouble & | vectorArg | ) | const |
std::vector subtraction
| r_PointDouble & r_PointDouble::operator-= | ( | const r_PointDouble & | a | ) |
| bool r_PointDouble::operator< | ( | const r_PointDouble & | vectorArg | ) | const |
| const r_PointDouble & r_PointDouble::operator= | ( | const r_PointDouble & | ) |
assignment: cleanup + copy
| bool r_PointDouble::operator== | ( | const r_PointDouble & | vectorArg | ) | const |
Returns 0 if this == p, -1 if this < p, 1 if this > p (considering the coordinates in lexicographic order).
equal operator
| double & r_PointDouble::operator[] | ( | size_t | ) |
subscriptor for write access
| double r_PointDouble::operator[] | ( | size_t | ) | const |
subscriptor for read access
| void r_PointDouble::print_status | ( | std::ostream & | s | ) | const |
writes the state of the object to the specified stream
| r_Point r_PointDouble::toIntPoint | ( | ) | const |
converts the stored vector to an r_Point (integer vertices)