On Fri, 14 Aug 2020 at 03:16, Steven D'Aprano wrote:
> Funny you mention this, I have been working on a Matrix object for
> precisely the use-case you discuss (secondary school maths), where
> performance is not critical and the dimensions of the matrix is
> typically single digits.
This is
That's food for thought. I have to admit that I have forgotten almost
everything about linear algebra that I was ever taught -- and I was never
taught numerical accuracy concerns in this context, since we were allowed
to use only pencil and paper (in high school as well as college), so the
Guido van Rossum writes:
> I was going to say that such a matrix module would be better of in
> PyPI, but then I recalled how the statistics module got created,
> and I think that the same reasoning from PEP 450 applies here too
> (https://www.python.org/dev/peps/pep-0450/#rationale).
>
>
I was going to say that such a matrix module would be better of in PyPI,
but then I recalled how the statistics module got created, and I think that
the same reasoning from PEP 450 applies here too (
https://www.python.org/dev/peps/pep-0450/#rationale). So I'd say go for it!
I think it would even
numpy arrays are ... arrays, if you want * to do matmul, use
numpy.matrix (which is soft deprecated since now we have @), and will
do what you expect with square matrix times vector.
broadcasting is the natural extension of array `op` scalar on... arrays.
Say you have an array Pressure with 3
On Thu, Aug 13, 2020 at 11:17:00PM +0100, Stefano Borini wrote:
> The math module has plenty of mathematical functions that are very
> interesting, but no Matrix object.
Funny you mention this, I have been working on a Matrix object for
precisely the use-case you discuss (secondary school
On Thu, Aug 13, 2020 at 12:38:38PM -0700, Christopher Barker wrote:
> On Thu, Aug 13, 2020 at 12:27 PM Ben Rudiak-Gould
> wrote:
>
> >
> > I think islice should implement __length_hint__, though. As of 3.8.5 it
> > doesn't.
> >
>
> And it could support __len__, and raise an Exception when the
This is a lot to add to Python itself to poorly reproduce well-tested
functionally in a very popular library. There are many Python distributions
that come with that extra battery included, just not the one from the PSF.
On Thu, Aug 13, 2020, 6:20 PM Stefano Borini
wrote:
> Excuse me if I am
Excuse me if I am out of the loop and this is already available, but I
haven't seen it and googling is not exactly easy as numpy introduces
considerable noise.
With the introduction of the statistics module, the standard library
provides basic statistical functions that can be useful in many
On Thu, 13 Aug 2020 at 22:22, Stefano Borini wrote:
>
> On Mon, 6 Apr 2020 at 09:40, Steve Barnes wrote:
> >
> > As an aside I have a perfect example to back up what Paul is saying below.
> > I work for a large corporation where developers are permitted to install
> > python modules on their
On Mon, 6 Apr 2020 at 09:40, Steve Barnes wrote:
>
> As an aside I have a perfect example to back up what Paul is saying below. I
> work for a large corporation where developers are permitted to install python
> modules on their development machines, (subject to some licence
> restrictions),
On Thu, Aug 13, 2020 at 12:27 PM Ben Rudiak-Gould
wrote:
>
> I think islice should implement __length_hint__, though. As of 3.8.5 it
> doesn't.
>
And it could support __len__, and raise an Exception when the underlying
iterable doesn’t support it.
I know that itertools needs to support
On Wed, Aug 12, 2020 at 8:49 AM David Mertz wrote:
> The start/stop/step sound like they might be nice. But that wouldn't give
> you a length, since you never know when an iterator will be exhausted. I
> feel like `len(islice(it, 1, 1_000_000))` telling you the "maximum possible
> length" is
You're absolutely right, I realized that __len__ would be the maximum possible
length after posting, and it would likely be more dangerous than helpful
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to
14 matches
Mail list logo