-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorsparseSparse arraysSparse arrays
Description
E.g.
julia> mapslices(nnz, speye(3), 1)
1×3 Array{Int64,2}:
1 2 3The problem seems to be
Line 1830 in 90cfb82
| _unsafe_getindex!(Aslice, A, idx...) |
slice variable, e.g.
julia> Base._unsafe_getindex!(sparse(ones(3)), speye(3), 1:3, 1)
3-element SparseVector{Float64,Int64} with 3 stored entries:
[1] = 1.0
[2] = 0.0
[3] = 0.0I don't know the behavior of _unsafe_getindex! should change or if mapslices should use a different function. I'm on
julia> versioninfo()
Julia Version 0.6.0-pre.alpha.180
Commit a365da4c6c* (2017-03-19 13:41 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin16.5.0)
CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT NO_AFFINITY HASWELL)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorsparseSparse arraysSparse arrays