Skip to content

Commit 2b2e7da

Browse files
committed
Allow normalOp weights be real
1 parent 286ef0b commit 2b2e7da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/NormalOp.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ function LinearOperatorCollection.NormalOp(::Type{T}; parent, weights = opEye(el
2020
return NormalOp(T, parent, weights)
2121
end
2222

23-
# TODO Are weights always restricted to T or can they also be real(T)?
2423
function NormalOp(::Type{T}, parent, ::Nothing) where T
2524
weights = opEye(eltype(parent), size(parent, 1), S = storage_type(parent))
2625
return NormalOp(T, parent, weights)
2726
end
28-
NormalOp(::Type{T}, parent, weights::AbstractVector{T}) where T = NormalOp(T, parent, WeightingOp(weights))
27+
NormalOp(::Union{Type{T}, Type{Complex{T}}}, parent, weights::AbstractVector{T}) where T = NormalOp(T, parent, WeightingOp(weights))
2928

30-
NormalOp(::Type{T}, parent, weights::AbstractLinearOperator{T}; kwargs...) where T = NormalOpImpl(parent, weights)
29+
NormalOp(::Union{Type{T}, Type{Complex{T}}}, parent, weights::AbstractLinearOperator{T}; kwargs...) where T = NormalOpImpl(parent, weights)
3130

3231
mutable struct NormalOpImpl{T,S,D,V} <: NormalOp{T}
3332
nrow :: Int

0 commit comments

Comments
 (0)