Skip to content

Commit 97917ef

Browse files
committed
🤖 Format .jl files
1 parent e5657d2 commit 97917ef

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

test/test_adjtrans.jl

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ function test_derived_adjoint()
4040
@testset ExtendedTestSet "Derived Adjoint" begin
4141
A = rand(5, 3) + im * rand(5, 3)
4242

43-
opA = LinearOperator{eltype(A)}(size(A,1), size(A,2), false, false,
44-
(y,x) -> mul!(y,A,x),
45-
(x,y) -> mul!(x,transpose(A),y),
46-
nothing)
43+
opA = LinearOperator{eltype(A)}(
44+
size(A, 1),
45+
size(A, 2),
46+
false,
47+
false,
48+
(y, x) -> mul!(y, A, x),
49+
(x, y) -> mul!(x, transpose(A), y),
50+
nothing,
51+
)
4752

4853
aopA = AdjointLinearOperator(opA)
4954
copA = ConjugateLinearOperator(opA)
@@ -77,16 +82,20 @@ end
7782

7883
test_derived_adjoint()
7984

80-
8185
##
8286
function test_derived_transpose()
8387
@testset ExtendedTestSet "Derived Transpose" begin
8488
A = rand(5, 3) + im * rand(5, 3)
8589

86-
opA = LinearOperator{eltype(A)}(size(A,1), size(A,2), false, false,
87-
(y,x) -> mul!(y,A,x),
88-
nothing,
89-
(x,y) -> mul!(x,adjoint(A),y))
90+
opA = LinearOperator{eltype(A)}(
91+
size(A, 1),
92+
size(A, 2),
93+
false,
94+
false,
95+
(y, x) -> mul!(y, A, x),
96+
nothing,
97+
(x, y) -> mul!(x, adjoint(A), y),
98+
)
9099

91100
aopA = AdjointLinearOperator(opA)
92101
copA = ConjugateLinearOperator(opA)
@@ -118,4 +127,4 @@ function test_derived_transpose()
118127
end
119128
end
120129

121-
test_derived_transpose()
130+
test_derived_transpose()

0 commit comments

Comments
 (0)