|
22 | 22 |
|
23 | 23 | NormalOp(::Union{Type{T}, Type{Complex{T}}}, parent, weights::AbstractVector{T}) where T = NormalOp(T, parent, WeightingOp(weights))
|
24 | 24 |
|
25 |
| -NormalOp(::Union{Type{T}, Type{Complex{T}}}, parent, weights::AbstractLinearOperator{T}; kwargs...) where T = NormalOpImpl(parent, weights) |
| 25 | +NormalOp(::Union{Type{T}, Type{Complex{T}}}, parent, weights; kwargs...) where T = NormalOpImpl(parent, weights) |
26 | 26 |
|
27 | 27 | mutable struct NormalOpImpl{T,S,D,V} <: NormalOp{T, S}
|
28 | 28 | nrow :: Int
|
@@ -52,6 +52,11 @@ function NormalOpImpl(parent, weights)
|
52 | 52 | tmp = S(undef, size(parent, 1))
|
53 | 53 | return NormalOpImpl(parent, weights, tmp)
|
54 | 54 | end
|
| 55 | +function NormalOpImpl(parent, weights::Nothing) |
| 56 | + S = storage_type(parent) |
| 57 | + tmp = S(undef, size(parent, 1)) |
| 58 | + return NormalOpImpl(parent, weights, tmp) |
| 59 | +end |
55 | 60 |
|
56 | 61 | function NormalOpImpl(parent, weights, tmp)
|
57 | 62 | function produ!(y, parent, weights, tmp, x)
|
|
0 commit comments