|
Macaulay2 Engine
|
Container of numerical points equipped with an 
#include <NAG.hpp>
Public Types | |
| using | RealVector = std::vector<double> |
| using | Weight = double |
Public Member Functions | |
| PointArray (Weight epsilon, const RealVector &weights) | |
| PointArray (Weight epsilon, int n) | |
| virtual | ~PointArray () |
| int | lookup_or_append (const RealVector &a) |
| int | lookup (const RealVector &a) const |
| Weight | weight (const RealVector &a) const |
| bool | are_same (const RealVector &a, const RealVector &b) const |
| void | text_out (buffer &o) const |
Private Member Functions | |
| decltype(mMap) ::const_iterator | left (Weight key) const |
| decltype(mMap) ::const_iterator | right (Weight key) const |
Private Attributes | |
| std::map< Weight, int > | mMap |
| std::vector< RealVector > | mPoints |
| Weight | mEpsilon |
| RealVector | mWeights |
Container of numerical points equipped with an 
A point hashes to the integer rounding of 