[Numpy-discussion] How to remove loops over inner()
Hans-Andreas Engel
engel@physics.harvard....
Thu Nov 29 08:48:23 CST 2007
> Essentially, you want to operate on a stack of two dimensional arrays, correct?
Yes, this is correct -- and I also think that one should be able to provide a
list of axes to be ignored.
> I'd be mildly supportive of something like this for tensordot; I'd prefer
> more descriptive name for keep_axis, but I don't know what it would be off
> the top of my head. In any event it should be XXX_axes and optionally take a
> sequence of axes so that more than one can be ignored. You could trivially
> build more specific functions on top of tensordot, so I don't see that inner
> needs to be changed as it's basically a convenience function anyway.
Good point; indeed a generalization of |tensordot()| would be sufficient for me!
I don't know the best naming here, |ignore_axes| might be a bit more descriptive.
Would this feature only require a few lines of code? Would this be easy to
implement for an expert on the intricacies of the numpy internals?
Best,
Hansres
More information about the Numpy-discussion
mailing list