Macaulay2 Engine
Loading...
Searching...
No Matches
PointArray.cpp File Reference

gtest coverage for PointArray — NAG's epsilon-bucketed numerical-point clustering structure. More...

#include <cstdio>
#include <string>
#include <iostream>
#include <sstream>
#include <memory>
#include <gtest/gtest.h>
#include <mpfr.h>
#include "NAG.hpp"

Go to the source code of this file.

Functions

 TEST (PointArray, constructor)
 TEST (PointArray, lookup)

Detailed Description

gtest coverage for PointArray — NAG's epsilon-bucketed numerical-point clustering structure.

Note
AI-generated documentation. Verify against the source before relying on it.

Hosts the TEST(PointArray, *) battery that builds PointArray instances at fixed epsilons (0.0001 and 0.001 in the smoke tests), confirms lookup returns -1 on misses, lookup_or_append adds new clusters and returns their indices, and re-querying a near-duplicate within epsilon resolves back to the same bucket. The structure underpins Numerical Algebraic Geometry's witness-set and monodromy paths, where the same numerical point can be encountered repeatedly under floating-point perturbation and must be identified across orderings of arrival.

Companion files in the file-misc-tests family (SubsetTest.cpp for subset combinatorics, basics-test.cpp for the harness-itself liveness check) get their own @file blocks on separate firings.

See also
NAG.hpp
interface/NAG.h
SubsetTest.cpp

Definition in file PointArray.cpp.