Bug fix
This commit is contained in:
parent
c30c47ad9c
commit
af89ace4ec
|
|
@ -15,7 +15,7 @@ end
|
||||||
|
|
||||||
T=Float32
|
T=Float32
|
||||||
|
|
||||||
function V_test(r2::T)::T
|
function V_test(r2)
|
||||||
return -4*exp(-r2/4)
|
return -4*exp(-r2/4)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -31,7 +31,7 @@ n_image=1
|
||||||
|
|
||||||
for L::T in 5.0:14.0
|
for L::T in 5.0:14.0
|
||||||
println("Constructing H operator...")
|
println("Constructing H operator...")
|
||||||
@time H=HOperator{T}(V_test,3,3,N,L,convert(T,μ),n_image)
|
@time H=HOperator{T}(V_test,3,3,N,L,convert(T,0),convert(T,μ),n_image)
|
||||||
println("Applying H 1000 times...")
|
println("Applying H 1000 times...")
|
||||||
if GPU_mode
|
if GPU_mode
|
||||||
v=CUDA.rand(Complex{T},vectorDims(H)...)
|
v=CUDA.rand(Complex{T},vectorDims(H)...)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue