[Numpy-discussion] alterdot and restoredot

Robert Kern robert.kern@gmail....
Wed Jul 9 14:52:45 CDT 2008


On Wed, Jul 9, 2008 at 06:36, Anne Archibald <peridot.faceted@gmail.com> wrote:
> 2008/7/9 Robert Kern <robert.kern@gmail.com>:
>
>>> - Which operations do the functions exactly affect?
>>>  It seems that alterdot sets the "dot" function slot to a BLAS
>>>  version, but what operations does this affect?
>>
>> dot(), vdot(), and innerproduct() on C-contiguous arrays which are
>> Matrix-Matrix, Matrix-Vector or Vector-Vector products.
>
> Really? Not, say, tensordot()?

If the ultimate dot() call inside tensordot() is one of the above
forms, then yes. If it's a 3D-3D product, for example, or one where
the shape manipulations leave the arrays discontiguous, then no.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco


More information about the Numpy-discussion mailing list