Skip to content

Instantly share code, notes, and snippets.

@alcides
Created December 21, 2010 14:20
Show Gist options
  • Save alcides/749978 to your computer and use it in GitHub Desktop.
Save alcides/749978 to your computer and use it in GitHub Desktop.
Example of the GPU-powered map API in AEminium
IntList output = (IntList) input.map(new Lambda<Integer,Integer>() {
@Override
public Integer call(Integer input) {
return 2 * input;
}
@Override
public String getSource() {
return "return 2 * input;";
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment