struct gpr::optim::MinimumSpectrumCache

A minimum spectrum cached by the exact coordinate bytes. Matching coordinates return the stored spectrum without another stencil.

#include <gpr/optimization/EndpointConnectivity.h>
 
struct MinimumSpectrumCache {
    // structs
 
    struct Hash;
    struct Key;
 
    // fields
 
    std::unordered_map<Key, EndpointSpectrum, Hash> spectra;
 
    // methods
 
    bool recall(const Eigen::VectorXd& position, EndpointSpectrum& out) const;
    void store(const Eigen::VectorXd& position, const EndpointSpectrum& spectrum);
};