.. index:: pair: struct; gpr::optim::MinimumSpectrumCache .. _doxid-structgpr_1_1optim_1_1_minimum_spectrum_cache: struct gpr::optim::MinimumSpectrumCache ======================================= .. toctree:: :hidden: struct_gpr_optim_MinimumSpectrumCache_Hash.rst struct_gpr_optim_MinimumSpectrumCache_Key.rst A minimum spectrum cached by the exact coordinate bytes. Matching coordinates return the stored spectrum without another stencil. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct MinimumSpectrumCache { // structs struct :ref:`Hash`; struct :ref:`Key`; // fields std::unordered_map<:ref:`Key`, :ref:`EndpointSpectrum`, :ref:`Hash`> :target:`spectra`; // methods bool :target:`recall`(const Eigen::VectorXd& position, :ref:`EndpointSpectrum`& out) const; void :target:`store`(const Eigen::VectorXd& position, const :ref:`EndpointSpectrum`& spectrum); };