[Numpy-discussion] Re: What to do with np.matrix

2024-10-20 Thread Ralf Gommers via NumPy-Discussion
On Sat, Oct 19, 2024 at 2:18 PM Dan Schult wrote: > This is quite helpful. Thanks! > > Github search: > I'm not surprised that many github hits are like homework problems. The > big resistance to removing np.matrix early on (~2008) came from educators > who wanted a Matrix oriented experience for

[Numpy-discussion] Re: What to do with np.matrix

2024-10-19 Thread Dan Schult
This is quite helpful. Thanks! Github search: I'm not surprised that many github hits are like homework problems. The big resistance to removing np.matrix early on (~2008) came from educators who wanted a Matrix oriented experience for their students who had recent linear algebra background. It

[Numpy-discussion] Re: What to do with np.matrix

2024-10-15 Thread Ralf Gommers via NumPy-Discussion
On Sat, Oct 12, 2024 at 6:23 PM Marten van Kerkwijk wrote: > Hi Dan, others, > > Great news that the sparse array implementation is getting there! > The continued existence of np.matrix has in large part been because of > sparse matrices, so in some sense the decision depends also on what > happe

[Numpy-discussion] Re: What to do with np.matrix

2024-10-14 Thread Charles R Harris via NumPy-Discussion
On Mon, Oct 14, 2024 at 9:10 AM Nathan wrote: > Here's a github code search for the string "np.matrix": > > https://github.com/search?q=%22np.matrix%22&type=code > > First, if you narrow down to just Python code, there are almost 60 > thousand results, which is quite high, much higher than we we'

[Numpy-discussion] Re: What to do with np.matrix

2024-10-14 Thread Nathan via NumPy-Discussion
Here's a github code search for the string "np.matrix": https://github.com/search?q=%22np.matrix%22&type=code First, if you narrow down to just Python code, there are almost 60 thousand results, which is quite high, much higher than we we're comfortable with for outright removals for NumPy 2.0.

[Numpy-discussion] Re: What to do with np.matrix

2024-10-14 Thread Charles R Harris via NumPy-Discussion
On Mon, Oct 14, 2024 at 8:09 AM Sebastian Berg wrote: > On Sat, 2024-10-12 at 12:13 -0400, Marten van Kerkwijk wrote: > > Hi Dan, others, > > > > > > > Regardless, since there have been 7 years of > > PendingDeprecationWarning, > > I think changing that to a regular DeprecationWarning should not

[Numpy-discussion] Re: What to do with np.matrix

2024-10-14 Thread Sebastian Berg
On Sat, 2024-10-12 at 12:13 -0400, Marten van Kerkwijk wrote: > Hi Dan, others, > > Regardless, since there have been 7 years of > PendingDeprecationWarning, > I think changing that to a regular DeprecationWarning should not > surprise anybody, at least not if they had built a package based on

[Numpy-discussion] Re: What to do with np.matrix

2024-10-12 Thread Marten van Kerkwijk
Hi Dan, others, Great news that the sparse array implementation is getting there! The continued existence of np.matrix has in large part been because of sparse matrices, so in some sense the decision depends also on what happens to those. But generally I'm in favour of just deprecating and removi