MRPT  2.0.1
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
A compile-time fixed-size numeric matrix container.
Definition: CMatrixFixed.h:33
A template to obtain the type of its argument as a string at compile time.
Definition: TTypeName.h:69
constexpr auto literal(const char(&lit)[N_PLUS_1]) -> string_literal< N_PLUS_1 - 1 >
Definition: static_string.h:46
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
constexpr string representation of a number.
Definition: num_to_string.h:44
static constexpr auto get()
Definition: TTypeName.h:71



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020