gtsam
3rdparty
Eigen
failtest
map_nonconst_ctor_on_const_ptr_4.cpp
Go to the documentation of this file.
1
#include "../Eigen/Core"
2
3
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
4
#define CV_QUALIFIER
5
#else
6
#define CV_QUALIFIER const
7
#endif
8
9
using namespace
Eigen
;
10
11
void
foo
(
const
float
*ptr,
DenseIndex
rows
,
DenseIndex
cols
){
12
Map<CV_QUALIFIER MatrixXf, Unaligned, OuterStride<>
>
m
(ptr,
rows
,
cols
,
OuterStride<>
(2));
13
}
14
15
int
main
() {}
Eigen
Namespace containing all symbols from the Eigen library.
Definition:
jet.h:637
rows
int rows
Definition:
Tutorial_commainit_02.cpp:1
Eigen::OuterStride
Convenience specialization of Stride to specify only an outer stride See class Map for some examples.
Definition:
Stride.h:106
main
int main()
Definition:
map_nonconst_ctor_on_const_ptr_4.cpp:15
m
Matrix3f m
Definition:
AngleAxis_mimic_euler.cpp:1
Eigen::Map
A matrix or vector expression mapping an existing array of data.
Definition:
Map.h:94
Eigen::DenseIndex
EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex
Definition:
Meta.h:66
cols
int cols
Definition:
Tutorial_commainit_02.cpp:1
foo
void foo(const float *ptr, DenseIndex rows, DenseIndex cols)
Definition:
map_nonconst_ctor_on_const_ptr_4.cpp:11
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:45