Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch committed Jan 25, 2022
1 parent 93270b6 commit abc5e38
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 abc5e38

Please sign in to comment.