Skip to content

Commit 44f090d

Browse files
authored
Fix Type in Aowdt (#137)
* Fix Type in Aowdt * To v0.19 * To v0.18.2
1 parent 75b1b4a commit 44f090d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MIRT"
22
uuid = "7035ae7a-3787-11e9-139a-5545ed3dc201"
33
authors = ["fessler <fessler@umich.edu>"]
4-
version = "0.18.1"
4+
version = "0.18.2"
55

66
[deps]
77
AVSfldIO = "b6189060-daf9-4c28-845a-cc0984b81781"

src/regularize/Aodwt.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ which is useful when imposing scale-dependent regularization
3333
"""
3434
function Aodwt(
3535
dims::Dims ;
36-
T::Type{<:Complex{<:AbstractFloat}} = ComplexF32,
36+
T::Type{<:Union{AbstractFloat,Complex{<:AbstractFloat}}} = Float32,
3737
level::Int = 3,
3838
wt = wavelet(WT.haar),
3939
operator::Bool = true, # !
@@ -52,7 +52,7 @@ function Aodwt(
5252
mfun = (A, x) -> A * x
5353
return mfun, LinearMapAA(forw!, back!,
5454
(prod(dims), prod(dims)) ;
55-
prop = (wt=wt, level=lev), T=T,
55+
prop = (wt, level=lev), T,
5656
operator = true, idim=dims, odim=dims,
5757
)
5858
else
@@ -63,7 +63,7 @@ function Aodwt(
6363
# x -> vec(dwt(reshape(x, dims), wt, level)),
6464
# y -> vec(idwt(reshape(y, dims), wt, level)),
6565
(prod(dims), prod(dims)) ;
66-
prop = (wt=wt, level=lev), T=T,
66+
prop = (wt, level=lev), T,
6767
)
6868
end
6969
end
@@ -72,7 +72,7 @@ function Aodwt(
7272

7373
scales = zeros(dims)
7474
for il in 1:level
75-
_,Al = mfunA(il)
75+
_, Al = mfunA(il)
7676
tmp = mfun(Al, ones(dims)) .== 0
7777
scales += il * (tmp .& (scales .== 0))
7878
end

0 commit comments

Comments
 (0)