<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 7, 2017 at 4:51 PM, Ralf Gommers <span dir="ltr"><<a href="mailto:ralf.gommers@gmail.com" target="_blank">ralf.gommers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Sun, Jan 8, 2017 at 12:42 PM, Charles R Harris <span dir="ltr"><<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sat, Jan 7, 2017 at 4:35 PM, Ralf Gommers <span dir="ltr"><<a href="mailto:ralf.gommers@gmail.com" target="_blank">ralf.gommers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sun, Jan 8, 2017 at 12:26 PM, Charles R Harris <span dir="ltr"><<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-2742842736368312134m_4376132908901568148m_3427894260182794419h5"><span>On Sat, Jan 7, 2017 at 2:29 PM, Ralf Gommers <span dir="ltr"><<a href="mailto:ralf.gommers@gmail.com" target="_blank">ralf.gommers@gmail.com</a>></span> wrote:<br></span><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="m_-2742842736368312134m_4376132908901568148m_3427894260182794419m_-6202466976896579626h5"><div><br></div></div></div><div>It looks to me like we're getting a bit off track here. The sparse matrices in scipy are heavily used, and despite rough edges pretty good at what they do. Deprecating them is not a goal.<br><br></div><div>The actual goal for the exercise that started this thread (at least as I see it) is to remove np.matrix from numpy itself so users (that don't know the difference) will only use ndarrays. And the few users that prefer np.matrix for teaching can now switch because of @, so their preference should have disappeared.<br><br></div><div>To reach that goal, no deprecation or backwards incompatible changes to scipy.sparse are needed.<span class="m_-2742842736368312134m_4376132908901568148m_3427894260182794419m_-6202466976896579626HOEnZb"><font color="#888888"><br></font></span></div></div></div></div></blockquote><div><br></div></span></div></div><span><div>What is the way forward with sparse? That looks like the biggest blocker on the road to a matrix free NumPy. I don't see moving the matrix package elsewhere as a solution for that. <br></div></span></div></div></div></blockquote><div><br></div><div>Why not? <br><span class="m_-2742842736368312134m_4376132908901568148HOEnZb"><font color="#888888"><br></font></span></div></div></div></div></blockquote><div><br></div></span><div>Because it doesn't get rid of matrices in SciPy, not does one gain a scalar multiplication operator for sparse.<br></div></div></div></div></blockquote><div><br></div></span><div>That's a different goal though. You can reach the "get matrix out of numpy" goal fairly easily (docs and packaging work), but if you insist on coupling it to major changes to scipy.sparse (a lot more work + backwards compat break), then what will likely happen is: nothing.<span class="HOEnZb"><font color="#888888"><br></font></span></div></div></div></div></blockquote><div><br></div><div>Could always remove matrix from the top level namespace and make it private. It still needs to reside someplace as long as sparse uses it. Fixing sparse is more work, but we have three years and it won't be getting any easier as time goes on.<br><br></div><div>Chuck <br></div></div></div></div>