Skip to content

Instantly share code, notes, and snippets.

@hb3p8
Created September 25, 2015 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hb3p8/06043a17d02798e895c1 to your computer and use it in GitHub Desktop.
Save hb3p8/06043a17d02798e895c1 to your computer and use it in GitHub Desktop.
ocl framework
typedef double real;
typedef Eigen::Vector2d vec2;
typedef Eigen::Vector2i int2;
typedef Eigen::Vector4i int4;
vec2 mix (vec2 a, vec2 b, real c) {
return (a + b) * c;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment