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

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.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miĆ© abr 15 19:30:12 CEST 2020 |