eholk / harlan

A language for GPU computing.
Other
1.19k stars 82 forks source link

Treating vectors as rectangular arrays #126

Open eholk opened 10 years ago

eholk commented 10 years ago

For a lot of array programming, a rectangular shape is perfectly fine and has some nice efficiency advantages over a vector-of-vectors representation. It'd be nice to be able to work with these in Harlan.

We could get most of the way there with a set of macros that takes shape parameters but otherwise work like the existing kernel and reduce forms.