Hello,

I would like to be able to do in-place multiplication of a gpuarray by
another gpuarray. Currently, only mutiplication by scalars is allowed. It
seems like all the functionality is already implemented but not used, is
there some issue that might be blocking this feature?

I've attached a patch that enables in-place multiplication by another
gpuarray. I've only tested that it works for the cases that I needed.
(mutiplication by the same dtype)

On another note, is there a preferred method to submit patches or even new
features? I was thinking of implementing the equivalent of numpy.vdot.  Is
this something that would be ok to have in pycuda, or should I just keep it
in my own code? It is a simple modification of the existing dot function,
but if the first argument is complex it is conjugated.

Thanks,

Alex Nitz

Attachment: 0001-allow-imul-to-act-on-gpuarray.patch
Description: Binary data

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to