@@ -84,8 +84,8 @@ for elty in [Float32, Float64, Complex64, Complex128]
84
84
@test_approx_eq BLAS. axpy! (α,copy (x1),copy (x2)) x2 + α* x1
85
85
@test_throws DimensionMismatch BLAS. axpy! (α, copy (x1), rand (elty, n + 1 ))
86
86
@test_throws DimensionMismatch BLAS. axpy! (α, copy (x1), 1 : div (n,2 ), copy (x2), 1 : n)
87
- @test_throws BoundsError BLAS. axpy! (α, copy (x1), 0 : div (n,2 ), copy (x2), 1 : (div (n, 2 ) + 1 ))
88
- @test_throws BoundsError BLAS. axpy! (α, copy (x1), 1 : div (n,2 ), copy (x2), 0 : (div (n, 2 ) - 1 ))
87
+ @test_throws ArgumentError BLAS. axpy! (α, copy (x1), 0 : div (n,2 ), copy (x2), 1 : (div (n, 2 ) + 1 ))
88
+ @test_throws ArgumentError BLAS. axpy! (α, copy (x1), 1 : div (n,2 ), copy (x2), 0 : (div (n, 2 ) - 1 ))
89
89
@test_approx_eq BLAS. axpy! (α,copy (x1),1 : n,copy (x2),1 : n) x2 + α* x1
90
90
else
91
91
z1 = convert (Vector{elty}, complex (randn (n), randn (n)))
@@ -94,8 +94,8 @@ for elty in [Float32, Float64, Complex64, Complex128]
94
94
@test_approx_eq BLAS. axpy! (α, copy (z1), copy (z2)) z2 + α * z1
95
95
@test_throws DimensionMismatch BLAS. axpy! (α, copy (z1), rand (elty, n + 1 ))
96
96
@test_throws DimensionMismatch BLAS. axpy! (α, copy (z1), 1 : div (n, 2 ), copy (z2), 1 : (div (n, 2 ) + 1 ))
97
- @test_throws BoundsError BLAS. axpy! (α, copy (z1), 0 : div (n,2 ), copy (z2), 1 : (div (n, 2 ) + 1 ))
98
- @test_throws BoundsError BLAS. axpy! (α, copy (z1), 1 : div (n,2 ), copy (z2), 0 : (div (n, 2 ) - 1 ))
97
+ @test_throws ArgumentError BLAS. axpy! (α, copy (z1), 0 : div (n,2 ), copy (z2), 1 : (div (n, 2 ) + 1 ))
98
+ @test_throws ArgumentError BLAS. axpy! (α, copy (z1), 1 : div (n,2 ), copy (z2), 0 : (div (n, 2 ) - 1 ))
99
99
@test_approx_eq BLAS. axpy! (α,copy (z1),1 : n,copy (z2),1 : n) z2 + α* z1
100
100
end
101
101
@@ -150,8 +150,8 @@ for elty in [Float32, Float64, Complex64, Complex128]
150
150
BLAS. copy! (x2, 1 : n, x1, 1 : n)
151
151
@test x2 == x1
152
152
@test_throws DimensionMismatch BLAS. copy! (x2, 1 : n, x1, 1 : (n - 1 ))
153
- @test_throws BoundsError BLAS. copy! (x1, 0 : div (n, 2 ), x2, 1 : (div (n, 2 ) + 1 ))
154
- @test_throws BoundsError BLAS. copy! (x1, 1 : (div (n, 2 ) + 1 ), x2, 0 : div (n, 2 ))
153
+ @test_throws ArgumentError BLAS. copy! (x1, 0 : div (n, 2 ), x2, 1 : (div (n, 2 ) + 1 ))
154
+ @test_throws ArgumentError BLAS. copy! (x1, 1 : (div (n, 2 ) + 1 ), x2, 0 : div (n, 2 ))
155
155
156
156
# symv and hemv
157
157
0 commit comments