Main MRPT website > **C++ reference for MRPT 1.5.7**

mrpt::math::detail::getVicinity< MatrixType, T, ReturnType, D > Struct Template Reference

struct mrpt::math::detail::getVicinity< MatrixType, T, ReturnType, D >

This huge template encapsulates a function to get the vicinity of an element, with maximum genericity.

Although it's not meant to be called directly, every type defining the ASSERT_ENOUGHROOM assert and the get_unsafe method will work. The assert checks if the boundaries (r-N,r+N,c-N,c+N) fit in the matrix. The template parameters are the following:

- MatrixType: the matrix or container base type, from which the vicinity is required.
- T: the base type of the matrix or container.
- ReturnType: the returning container type. The class VicinityTraits<ReturnType> must be completely defined.
- D: the dimension of the vicinity. Current implementations are 4, 5, 8, 9, 12, 13, 20, 21, 24 and 25, although it's easy to implement new variants.

Definition at line 153 of file math_frwds.h.

`#include <mrpt/math/math_frwds.h>`

Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 8277875f6 Mon Jun 11 02:47:32 2018 +0200 at lun oct 28 01:50:49 CET 2019 |