gtsam
3rdparty
Eigen
failtest
map_nonconst_ctor_on_const_ptr_3.cpp
Go to the documentation of this file.
1
#include "../Eigen/Core"
2
3
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
4
#define CV_QUALIFIER const
5
#else
6
#define CV_QUALIFIER
7
#endif
8
9
using namespace
Eigen
;
10
11
void
foo
(
CV_QUALIFIER
float
*ptr,
DenseIndex
rows
,
DenseIndex
cols
){
12
Map<MatrixXf, Aligned, InnerStride<2>
>
m
(ptr,
rows
,
cols
,
InnerStride<2>
());
13
}
14
15
int
main
() {}
Eigen
Namespace containing all symbols from the Eigen library.
Definition:
jet.h:637
Eigen::InnerStride
Convenience specialization of Stride to specify only an inner stride See class Map for some examples.
Definition:
Stride.h:95
CV_QUALIFIER
#define CV_QUALIFIER
Definition:
map_nonconst_ctor_on_const_ptr_3.cpp:6
rows
int rows
Definition:
Tutorial_commainit_02.cpp:1
main
int main()
Definition:
map_nonconst_ctor_on_const_ptr_3.cpp:15
m
Matrix3f m
Definition:
AngleAxis_mimic_euler.cpp:1
foo
void foo(CV_QUALIFIER float *ptr, DenseIndex rows, DenseIndex cols)
Definition:
map_nonconst_ctor_on_const_ptr_3.cpp:11
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
gtsam
Author(s):
autogenerated on Thu Nov 28 2024 04:03:26