Skip to content

Commit 871cc22

Browse files
committed
Update blas.jl
replace `ArgumentError` with `ErrorException` for `hpmv!` and `spmv!`
1 parent eebaf2d commit 871cc22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/LinearAlgebra/test/blas.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ end
246246
@test BLAS.hpmv!(Cuplo, α, AP, xx, β, deepcopy(yy)) α*AH*xx + β*yy
247247
end
248248
AP′ = view(zeros(elty, n*(n+1)),1:2:n*(n+1))
249-
@test_throws ArgumentError BLAS.hpmv!(Cuplo, α, AP′, x, β, y)
249+
@test_throws ErrorException BLAS.hpmv!(Cuplo, α, AP′, x, β, y)
250250
AP′ = view(AP, 1:length(AP′) - 1)
251251
@test_throws DimensionMismatch BLAS.hpmv!(Cuplo, α, AP′, x, β, y)
252252
@test_throws DimensionMismatch BLAS.hpmv!(Cuplo, α, AP′, x, β, view(y,1:n-1))
@@ -276,7 +276,7 @@ end
276276
@test BLAS.spmv!(Cuplo, α, AP, xx, β, deepcopy(yy)) α*AS*xx + β*yy
277277
end
278278
AP′ = view(zeros(elty, n*(n+1)),1:2:n*(n+1))
279-
@test_throws ArgumentError BLAS.spmv!(Cuplo, α, AP′, x, β, y)
279+
@test_throws ErrorException BLAS.spmv!(Cuplo, α, AP′, x, β, y)
280280
AP′ = view(AP, 1:length(AP′) - 1)
281281
@test_throws DimensionMismatch BLAS.spmv!(Cuplo, α, AP′, x, β, y)
282282
@test_throws DimensionMismatch BLAS.spmv!(Cuplo, α, AP′, x, β, view(y,1:n-1))

0 commit comments

Comments
 (0)