Skip to content

Commit cf2ec38

Browse files
committed
fix
1 parent 2cd9b35 commit cf2ec38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/classical/jacobi.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,17 @@ end
295295

296296
function _jacobi_convert_a(a, b, k, T) # Jacobi(a+k, b) \ Jacobi(a, b)
297297
j = round(k)
298-
@assert j k
298+
if j k
299+
throw(ArgumentError("non-integer conversions not supported"))
300+
end
299301
k = Integer(j)
300302
reduce(*, [_jacobi_convert_a(a+j, b) for j in k-1:-1:0], init=Eye{T}(∞))
301303
end
302304
function _jacobi_convert_b(a, b, k, T) # Jacobi(a, b+k) \ Jacobi(a, b)
303305
j = round(k)
304-
@assert j k
306+
if j k
307+
throw(ArgumentError("non-integer conversions not supported"))
308+
end
305309
k = Integer(j)
306310
reduce(*, [_jacobi_convert_b(a, b+j) for j in k-1:-1:0], init=Eye{T}(∞))
307311
end

0 commit comments

Comments
 (0)