We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c390cc commit 6eb15f5Copy full SHA for 6eb15f5
test/testNormalOp.jl
@@ -5,7 +5,7 @@ N = 512
5
Random.seed!(1234)
6
x = rand(N)
7
A = rand(N,N)
8
-W = WeightingOp(Float64, weights=rand(N))
+W = WeightingOp(rand(N))
9
10
y1 = adjoint(A)*W*A*x
11
y = normalOperator(A,W)*x
test/testOperators.jl
@@ -86,14 +86,14 @@ function testWeighting(N=512)
86
87
x1 = rand(N)
88
weights = rand(N)
89
- W = WeightingOp(Float64; weights)
+ W = WeightingOp(weights)
90
y1 = W*x1
91
y = weights .* x1
92
93
@test norm(y1 - y) / norm(y) ≈ 0 atol=0.01
94
95
x2 = rand(2*N)
96
- W2 = WeightingOp(Float64; weights, rep=2)
+ W2 = WeightingOp(weights, 2)
97
y2 = W2*x2
98
y = repeat(weights,2) .* x2
99
0 commit comments