Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101851152
ternary_2.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 14, 09:17
Size
225 B
Mime Type
text/x-c
Expires
Sun, Feb 16, 09:17 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24242106
Attached To
rDLMA Diffusion limited mixed aggregation
ternary_2.cpp
View Options
#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
}
Event Timeline
Log In to Comment