Skip to content

Commit 88f225c

Browse files
🤖 Format .jl files (#357)
Co-authored-by: tmigot <25304288+tmigot@users.noreply.github.com>
1 parent 6d6a53b commit 88f225c

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

ext/LinearOperatorsMetalExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ isdefined(Base, :get_extension) ? (using Metal) : (using ..Metal)
55

66
LinearOperators.storage_type(::MtlArray{T, 2, S}) where {T, S} = MtlArray{T, 1, S}
77

8-
end # module
8+
end # module

test/gpu/jlarrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
test_S_kwarg(arrayType = JLArray)
1+
test_S_kwarg(arrayType = JLArray)

test/gpu/metal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
using Metal
2-
test_S_kwarg(arrayType = MtlArray, notMetal = false)
2+
test_S_kwarg(arrayType = MtlArray, notMetal = false)

test/gpu/test_S_kwarg.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ function test_S_kwarg(; arrayType, notMetal = true)
1919
@test LinearOperators.storage_type(LinearOperator(Symmetric(mat); S = vecT)) == vecT
2020
#notMetal && @test LinearOperators.storage_type(LinearOperator(SymTridiagonal(Symmetric(mat)); S = vecT)) == vecT
2121
@test LinearOperators.storage_type(LinearOperator(Hermitian(mat); S = vecT)) == vecT
22-
@test LinearOperators.storage_type(LinearOperator(Float32, 32, 32, true, true, () -> 0; S = vecT)) == vecT
22+
@test LinearOperators.storage_type(
23+
LinearOperator(Float32, 32, 32, true, true, () -> 0; S = vecT),
24+
) == vecT
2325

2426
# special-operators.jl
2527
@test LinearOperators.storage_type(opEye(Float32, 32; S = vecT)) == vecT
@@ -36,7 +38,8 @@ function test_S_kwarg(; arrayType, notMetal = true)
3638
@test LinearOperators.storage_type(opExtension([1, 2, 3], 32; S = vecT)) == vecT
3739

3840
@test LinearOperators.storage_type(BlockDiagonalOperator(mat, mat)) == vecT # default
39-
notMetal && @test LinearOperators.storage_type(BlockDiagonalOperator(mat, mat; S = vecTother)) == vecTother
41+
notMetal &&
42+
@test LinearOperators.storage_type(BlockDiagonalOperator(mat, mat; S = vecTother)) ==
43+
vecTother
4044
end
41-
42-
end
45+
end

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ include("test_solve_shifted_system.jl")
1919
include("gpu/test_S_kwarg.jl")
2020
include("gpu/jlarrays.jl")
2121
if Sys.isapple() && occursin("arm64", Sys.MACHINE)
22-
include("gpu/metal.jl")
22+
include("gpu/metal.jl")
2323
end

0 commit comments

Comments
 (0)