Main MRPT website > **C++ reference for MRPT 1.9.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 172 of file math_frwds.h.

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

Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019 |