[SciPy-Dev] adding Khatri-Rao product to linalg

Ralf Gommers ralf.gommers at gmail.com
Sun Feb 16 07:02:17 EST 2020


On Fri, Feb 14, 2020 at 10:39 PM <rlucas7 at vt.edu> wrote:

> No objections on inclusion from me-I could see some niche statistical
> applications for this one, so +1 for the feature. Those statistical
> applications would likely be in other packages taking a dependency on scipy.
>
> I took a brief look at the PR, it looks like all tests are with dense
> arrays.
>  should they cover sparse arrays too or is explicitly out of scope here?
>
> Not super familiar myself with how the sparse codes work I in scipy.
> It would seem that sparse Khatri-Rao with a dense or a sparse should be
> possible, not sure if result should be sparse or dense though so figured
> I’d ask the question.
>

Functions in scipy.linalg don't support sparse arrays; scipy.sparse.linalg
is for that. So if there's interest, that could be added separately (not
sure that's worth it though, there's probably other functions that would be
higher on the list for sparse).

Cheers,
Ralf



>
> -Lucas Roberts
>
> On Feb 14, 2020, at 10:05 PM, Ralf Gommers <ralf.gommers at gmail.com> wrote:
>
> 
> Hi all,
>
> I think this wasn't run by this list yet:
> https://github.com/scipy/scipy/pull/11456 is a PR to add the Khatri-Rao
> product to scipy.linalg. It seems like a good fit to me. Please comment
> here or on the PR soon if you disagree. Unless there's objections, we'll
> merge it in a few days.
>
> Cheers,
> Ralf
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20200216/fd8fde8d/attachment.html>


More information about the SciPy-Dev mailing list