.. index:: pair: class; gpr::ski::UniformGrid .. _doxid-classgpr_1_1ski_1_1_uniform_grid: class gpr::ski::UniformGrid =========================== .. toctree:: :hidden: Overview ~~~~~~~~ Uniform grid of m points spanning [lo, hi] with two cells of padding, so every interior input keeps its full four-point stencil. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class UniformGrid { public: // construction :target:`UniformGrid`(double lo, double hi, Eigen::Index m); // methods Eigen::Index :target:`size`() const; double :target:`spacing`() const; double :target:`at`(Eigen::Index i) const; double :ref:`indexOf`(double x) const; }; .. _details-classgpr_1_1ski_1_1_uniform_grid: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Uniform grid of m points spanning [lo, hi] with two cells of padding, so every interior input keeps its full four-point stencil. Methods ------- .. index:: pair: function; indexOf .. _doxid-classgpr_1_1ski_1_1_uniform_grid_1acd4cc46748eddee941bd9dec2a0a8669: .. ref-code-block:: cpp :class: doxyrest-title-code-block double indexOf(double x) const Grid coordinate of x in index units.