Result objects for scipy.sparse.csgraph

[email protected] Thu, 07 Mar 2024 03:38:49 -0000
Newsgroups gmane.comp.python.scientific.devel
Message-ID <[email protected]>
Hi all,

I'd like to raise the idea of updating the ``scipy.sparse.csgraph`` API to use result objects rather than a mutable return signature. This was raised by Jake from [scipy-20187](https://github.com/scipy/scipy/pull/20187) and I think he has the right idea. Specifically I agree with:

"These mutating signatures tend to be quite nasty especially as it doesn't save on computation. Elsewhere in SciPy we often use results objects"

Should there be some effort to rework the csgraph API to utilise a result object?

Thanks

Kai
_______________________________________________
SciPy-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/scipy-dev.python.org/
Member address: [email protected]