ternary_1.cpp
Go to the documentation of this file.
1 #include "../Eigen/Core"
2 
3 using namespace Eigen;
4 
5 int main(int argc,char **)
6 {
7  VectorXf a(10), b(10);
8 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
9  b = argc>1 ? 2*a : -a;
10 #else
11  b = argc>1 ? 2*a : VectorXf(-a);
12 #endif
13 }
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
b
Scalar * b
Definition: benchVecAdd.cpp:17
a
ArrayXXi a
Definition: Array_initializer_list_23_cxx11.cpp:1
main
int main(int argc, char **)
Definition: ternary_1.cpp:5


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:04