Here is a MWE that shows the equal method is not defined properly in ```libgpyarray``` main class: ```python import pygpu ctx = pygpu.init("cuda") g1 = pygpu.zeros((2, 2), context=ctx) g2 = pygpu.zeros((2, 2), context=ctx) print g1 == g2 ``` -> ```False``` if the class is defined as ```pygpu._array.ndgpuarray```, it works as expected: ```python import pygpu ctx = pygpu.init("cuda") g1 = pygpu.zeros((2, 2), context=ctx, cls=pygpu._array.ndgpuarray) g2 = pygpu.zeros((2, 2), context=ctx, cls=pygpu._array.ndgpuarray) print g1 == g2 ``` -> ```[[ True True] [ True True]]```
Activity
abergeron commentedon May 29, 2017
To fix this we should port the functionality of ndgpuarray to the base Cython class. This should be doable now that GpuElemewise is available in C.