MRPT  2.0.4
CVectorFixed.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include <mrpt/math/CMatrixFixed.h>
14 
15 namespace mrpt
16 {
17 namespace math
18 {
19 /** CVectorFixed is an array for numeric types supporting several mathematical
20  * operations (actually, just a wrapper on Eigen::Matrix<T,N,1>)
21  * \sa CVectorFixedFloat, CVectorFixedDouble, CArray
22  */
23 template <typename T, std::size_t N>
25 
26 /** Specialization of CVectorFixed for float numbers \sa CVectorFixed */
27 template <std::size_t N>
29 
30 /** Specialization of CVectorFixed for double numbers \sa CVectorFixed */
31 template <std::size_t N>
33 
34 } // namespace math
35 
36 namespace typemeta
37 {
38 // Extensions to mrpt::typemeta::TTypeName for matrices:
39 template <typename T, size_t N>
41 {
42  constexpr static auto get()
43  {
44  return literal("CVectorFixed<") + TTypeName<T>::get() + literal(",") +
46  }
47 };
48 template <size_t N>
50 {
51  constexpr static auto get()
52  {
53  return literal("CVectorFixedDouble<") +
55  }
56 };
57 template <size_t N>
59 {
60  constexpr static auto get()
61  {
62  return literal("CVectorFixedFloat<") +
64  }
65 };
66 } // namespace typemeta
67 } // namespace mrpt
CMatrixFixed.h
num_to_string.h
mrpt::typemeta::TTypeName
A template to obtain the type of its argument as a string at compile time.
Definition: TTypeName.h:69
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: BaseAppDataSource.h:15
mrpt::typemeta::TTypeName< mrpt::math::CVectorFixedDouble< N > >::get
constexpr static auto get()
Definition: CVectorFixed.h:51
mrpt::typemeta::num_to_string
constexpr string representation of a number.
Definition: num_to_string.h:44
TTypeName.h
mrpt::math::CMatrixFixed
A compile-time fixed-size numeric matrix container.
Definition: CMatrixFixed.h:33
mrpt::typemeta::TTypeName< mrpt::math::CVectorFixedFloat< N > >::get
constexpr static auto get()
Definition: CVectorFixed.h:60
mrpt::typemeta::TTypeName::get
constexpr static auto get()
Definition: TTypeName.h:71
mrpt::typemeta::literal
constexpr auto literal(const char(&lit)[N_PLUS_1]) -> string_literal< N_PLUS_1 - 1 >
Definition: static_string.h:46
mrpt::typemeta::TTypeName< mrpt::math::CVectorFixed< T, N > >::get
constexpr static auto get()
Definition: CVectorFixed.h:42



Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Fri Jul 17 08:43:33 UTC 2020