Julia: some functions are still implicitly vectorized for SparseVector

Created on 25 Jul 2017  路  6Comments  路  Source: JuliaLang/julia

I haven't seen an issue or PR for this, but feel free to close if I'm missing something.

base/sparse/sparsevector.jl still has method definitions for sin, tan, exp, etc. that operate element-wise over SparseVectors.

broadcast deprecation sparse

Most helpful comment

PR inbound :).

All 6 comments

As a tip to anyone who wants to take this on: The deprecations for these functions are for AbstractArray, so simply removing the explicitly defined methods for sparse arrays should let those go through the existing deprecation path without having to add a new one.

so simply removing the explicitly defined methods for sparse arrays should let those go through the existing deprecation path without having to add a new one.

But the deprecations for SparseVector should still be there for another release, since this does not depwarn in 0.6? Probably easiest to just add new deprecations for the special case of SparseVector?

PR inbound :).

But the deprecations for SparseVector should still be there for another release

The goal is to have no depwarns for anything in 1.0

The goal is to have no depwarns for anything in 1.0

Yes, but IIUC sin(x::SparseVector) should depwarn on 0.7, but sin(x::AbstractVector) should not be defined since the 0.6 deprecations are removed?

Oh I see what you mean. Yeah I guess adding explicit deprecations is probably better then.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

felixrehren picture felixrehren  路  3Comments

manor picture manor  路  3Comments

iamed2 picture iamed2  路  3Comments

omus picture omus  路  3Comments

dpsanders picture dpsanders  路  3Comments