Skip to content

Commit 19d74d5

Browse files
committed
Fix eltype of SamplingOp
1 parent 6dfdd5b commit 19d74d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SamplingOp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ indicated by pattern.
3030
"""
3131
function SamplingOpImpl(T::Type{<:Number}, pattern::AbstractArray{Int}, shape::Tuple; S = Vector{T})
3232
ndims(pattern)>1 ? idx = vectorizePattern(pattern, shape) : idx = pattern
33-
return opRestriction(idx, prod(shape); S = S)
33+
return opEye(T,length(idx), S = S)*opRestriction(idx, prod(shape); S = S)
3434
end
3535

3636
function SamplingOpImpl(T::Type{<:Number}, pattern::AbstractArray{Bool}; S = Vector{T})

0 commit comments

Comments
 (0)