This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/eigen/failtest/ternary_2.cpp
github-classroom[bot] 5d6a4935ec
Initial commit
2024-09-26 09:17:55 +00:00

13 lines
225 B
C++

#include "../Eigen/Core"
using namespace Eigen;
int main(int argc,char **)
{
VectorXf a(10), b(10);
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
b = argc>1 ? 2*a : a+a;
#else
b = argc>1 ? VectorXf(2*a) : VectorXf(a+a);
#endif
}