Created
December 21, 2010 14:20
-
-
Save alcides/749978 to your computer and use it in GitHub Desktop.
Example of the GPU-powered map API in AEminium
This file contains 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
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