A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-April/133796.html below:

A dedicated infix operator for matrix multiplication

[Python-Dev] PEP 465: A dedicated infix operator for matrix multiplication [Python-Dev] PEP 465: A dedicated infix operator for matrix multiplicationAlexander Belopolsky alexander.belopolsky at gmail.com
Mon Apr 7 18:52:58 CEST 2014
On Sun, Apr 6, 2014 at 11:13 PM, Benjamin Peterson <benjamin at python.org>wrote:

> > I believe this leaves only one open question, which is where exactly
> > to stick the new matmul slots into PyTypeObject. This is the kind of
> > fiddly detail that can easily be settled later if the PEP is accepted,
> > though.
>
> I don't see what it shouldn't be in PyNumberMethods. Surely, we're not
> going to get a flood of requests for more matrix operators, are we? :)


We may want to introduce say  PyArrayMethods even if we don't introduce more
array operators.  We can populate that struct with array-specific
alternatives for
PySequence/PyMappingMethods and eliminate the need for dynamically created
array types to allocate those.

There is also a way to introduce PyArrayMethods at no cost to current
implementation:
we can rename tp_reserved (formerly known as tp_compare) to tp_as_array.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140407/ea51913b/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4