Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch committed Mar 21, 2022
1 parent 03e5db2 commit 4eafd99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/getindex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function _fillbyrows!(dest, A, I, J)
@views @inbounds for (ind, i) in enumerate(I)
x[i] = one(eltype(A))
_unsafe_mul!(temp, A', x)
_copyrow!(dest, ind, temp, J)
dest[ind,:] .= adjoint.(temp[J])
x[i] = zero(eltype(A))
end
return dest
Expand Down Expand Up @@ -129,8 +129,6 @@ end
@inline _copycol!(dest, ind, temp, i::Integer) = (@inbounds dest[ind] = temp[i])
@inline _copycol!(dest, ind, temp, I::Indexer) =
(@views @inbounds dest[:,ind] .= temp[I])
@inline _copyrow!(dest, ind, temp, J::Indexer) =
(@views @inbounds dest[ind,:] .= adjoint.(temp[J]))

# nogetindex_error() = error("indexing not allowed for LinearMaps; consider setting `LinearMaps.allowgetindex = true`")

Expand Down

0 comments on commit 4eafd99

Please sign in to comment.