SparseArrays.jl
SparseArrays.jl copied to clipboard
SparseArrays.jl is a Julia stdlib
deleteat! and keepat! are available only for dense arrays. thanks
Hi there! I was trying to use sparse columns in a `DataFrame` and I found out that some methods were missing for the `SparseVector` type, such as `deleteat!`. Here's a...
Calling `repeat` for sparse matrices or vectors currently calls the `Base` function, which ends up building the result rather inefficiently with indexing brackets. This would add sparse versions that use...
This is about in-place multiplication `mul!(b, A, x)` of a sparse matrix `A` by a vector `x`. From 1.9.3 to 1.10.0-rc1, this operation - has gotten significantly slower - has...
This is a companion PR to https://github.com/JuliaLang/julia/pull/52439. It pushes creation of `MulAddMul` objects down the call path, so avoids it in all cases except for in-place sparse multiplication.
**Describe the bug** Stacking arrays of SparseArrays is slow. Similar to JuliaGPU/CUDA.jl#2248. **To reproduce** The Minimal Working Example (MWE) for this bug: ```julia using BenchmarkTools, SparseArrays; N=100; M=1000; x=spzeros(N); x[1]=10.0;...
I tried to create a sparse vector of strings, and it failed due to `zero(String)` not being defined. I'm using the empty string `""` as the zero value. Any chance...
Hello, Is it possible to implement thread-safe version of `dropstored!`? I got `AssertionError: _goodbuffers(S)` in multi-thread environment using `dropstored!`. Thank you.
``` using LinearAlgebra, SparseArrays F = lu(spzeros(2,2), check=false) F \ rand(2) ERROR: SingularException(0) Stacktrace: [1] umferror(status::Int32) @ SparseArrays.UMFPACK ~/.julia/juliaup/julia-1.10.1+0.x64.linux.gnu/share/julia/stdlib/v1.10/SparseArrays/src/solvers/umfpack.jl:105 [2] macro expansion @ ~/.julia/juliaup/julia-1.10.1+0.x64.linux.gnu/share/julia/stdlib/v1.10/SparseArrays/src/solvers/umfpack.jl:665 [inlined] [3] macro expansion @ ./lock.jl:267...