Closed sglyon closed 8 years ago
There are a number of things that could be sped up here. Most of them revolve around allocating less
minorder
vec
sparse
SparseMatrixCSC
collect(1:m)''
reshape(1:m, 1, m)
B
cell
Vector{SparseMatrixCSC{Float64,Int64}}
[:, ind] = stuff[:, ind]
@inbounds
@simd
I'm sure there are more, but that is what I came up with from a first look at the method through performance lenses
There are a number of things that could be sped up here. Most of them revolve around allocating less
minorder
vec
so many times in the call tosparse
sparse
method and directly call theSparseMatrixCSC
constructorcollect(1:m)''
toreshape(1:m, 1, m)
B
acell
we know what it will really be (Vector{SparseMatrixCSC{Float64,Int64}}
)[:, ind] = stuff[:, ind]
@inbounds
or@simd
where appropriateI'm sure there are more, but that is what I came up with from a first look at the method through performance lenses