map_nonconst_ctor_on_const_ptr_1.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 size){
12  Map<ArrayXf> m(ptr, size);
13 }
14 
15 int main() {}
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
foo
void foo(CV_QUALIFIER float *ptr, DenseIndex size)
Definition: map_nonconst_ctor_on_const_ptr_1.cpp:11
CV_QUALIFIER
#define CV_QUALIFIER
Definition: map_nonconst_ctor_on_const_ptr_1.cpp:6
size
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
m
Matrix3f m
Definition: AngleAxis_mimic_euler.cpp:1
main
int main()
Definition: map_nonconst_ctor_on_const_ptr_1.cpp:15
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


gtsam
Author(s):
autogenerated on Thu Nov 28 2024 04:03:26