Skip to content

Commit ef2867f

Browse files
committed
minor cleanup
1 parent 753049d commit ef2867f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/getindex.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function _fillbyrows!(dest, A, I, J)
100100
@views @inbounds for (ind, i) in enumerate(I)
101101
x[i] = one(eltype(A))
102102
_unsafe_mul!(temp, A', x)
103-
_copyrow!(dest, ind, temp, J)
103+
dest[ind,:] .= adjoint.(temp[J])
104104
x[i] = zero(eltype(A))
105105
end
106106
return dest
@@ -129,8 +129,6 @@ end
129129
@inline _copycol!(dest, ind, temp, i::Integer) = (@inbounds dest[ind] = temp[i])
130130
@inline _copycol!(dest, ind, temp, I::Indexer) =
131131
(@views @inbounds dest[:,ind] .= temp[I])
132-
@inline _copyrow!(dest, ind, temp, J::Indexer) =
133-
(@views @inbounds dest[ind,:] .= adjoint.(temp[J]))
134132

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

0 commit comments

Comments
 (0)