v1.0
Functions
ref_7.cpp File Reference
#include "../Eigen/Core"
Functions
void
call_ref
(
Ref
< const Matrix3f, 0,
OuterStride
< 2 >>)
int
main
()
Function Documentation
◆
call_ref()
void call_ref
(
Ref
< const Matrix3f, 0,
OuterStride
< 2 >>
)
5
{}
Referenced by
main()
.
◆
main()
int
main
(
)
7
{
8
MatrixXf
a
(6, 2);
9
Map<const Matrix3f, 0, OuterStride<Dynamic>
>
md
(
a
.data(),
OuterStride<Dynamic>
(2));
10
Map<const Matrix3f, 0, OuterStride<2>
>
m2
(
a
.data());
11
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
12
call_ref
(
md
);
13
#else
14
call_ref
(
m2
);
15
#endif
16
}
md
Matrix2d md
Definition:
MatrixBase_cast.cpp:1
m2
MatrixType m2(n_dims)
Eigen::Map
A matrix or vector expression mapping an existing array of data.
Definition:
Map.h:96
Eigen::OuterStride
Convenience specialization of Stride to specify only an outer stride See class Map for some examples.
Definition:
Stride.h:104
a
const Scalar * a
Definition:
level2_cplx_impl.h:32
call_ref
void call_ref(Ref< const Matrix3f, 0, OuterStride< 2 >>)
Definition:
ref_7.cpp:5
References
a
,
call_ref()
,
m2()
, and
md
.
Eigen
failtest
ref_7.cpp
Generated on Wed Aug 27 2025 17:05:06 for MercuryDPM by
1.9.1