Created
June 2, 2017 17:31
-
-
Save njlr/f3437cef2a67ef4762daec9dfbea4d36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define CREATE_VECTOR(D) \ | |
struct Vector_##D {\ | |
static constexpr int N = D;\ | |
int data[N];\ | |
\ | |
Vector_##D (Vector_##D const& v) {\ | |
for(int i=0; i<N ; ++i) {\ | |
data[i] = v[i];\ | |
}\ | |
}\ | |
\ | |
// etc... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment