Skip to content

Conversation

@kshyatt
Copy link
Member

@kshyatt kshyatt commented Nov 13, 2025

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2025

Your PR requires formatting changes to meet the project's style guidelines.
Please consider running Runic (git runic master) to apply these changes.

Click here to view the suggested changes.
diff --git a/src/host/sparse.jl b/src/host/sparse.jl
index 3fae318..5c475b0 100644
--- a/src/host/sparse.jl
+++ b/src/host/sparse.jl
@@ -75,7 +75,7 @@ function LinearAlgebra.opnorm(A::AbstractGPUSparseMatrixCSR, p::Real=2)
     end
 end
 
-LinearAlgebra.opnorm(A::AbstractGPUSparseMatrixCSC, p::Real=2) = opnorm(csr_type(A)(A), p)
+LinearAlgebra.opnorm(A::AbstractGPUSparseMatrixCSC, p::Real = 2) = opnorm(csr_type(A)(A), p)
 
 function LinearAlgebra.norm(A::AbstractGPUSparseMatrix{T}, p::Real=2) where T
     if p == Inf
diff --git a/test/testsuite/sparse.jl b/test/testsuite/sparse.jl
index 08c5ab1..5c464e3 100644
--- a/test/testsuite/sparse.jl
+++ b/test/testsuite/sparse.jl
@@ -345,19 +345,20 @@ function linalg(AT, eltypes)
         if !(ET <: Union{Int16, Int32, Int64, Complex{Int16}, Complex{Int32}, Complex{Int64}})
             @testset "Sparse matrix($ET) linear algebra" begin
                 m = 10
-                A  = sprandn(ET, m, m, 0.2)
-                B  = sprandn(ET, m, m, 0.3)
+                A = sprandn(ET, m, m, 0.2)
+                B = sprandn(ET, m, m, 0.3)
                 ZA = spzeros(ET, m, m)
-                C  = I(div(m, 2))
+                C = I(div(m, 2))
                 dA = AT(A)
                 dB = AT(B)
                 dZA = AT(ZA)
                 @testset "opnorm and norm" begin
                     @test opnorm(A, Inf) ≈ opnorm(dA, Inf)
-                    @test opnorm(A, 1)   ≈ opnorm(dA, 1)
+                    @test opnorm(A, 1) ≈ opnorm(dA, 1)
                     @test_throws ArgumentError opnorm(dA, 2)
                 end
             end
         end
     end
+    return
 end

@kshyatt kshyatt enabled auto-merge (squash) November 13, 2025 12:58
@kshyatt kshyatt merged commit 8c02b43 into master Nov 13, 2025
32 of 36 checks passed
@kshyatt kshyatt deleted the ksh/opnorm branch November 13, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants