Skip to content

Commit 21f221c

Browse files
committed
DenseVector → AbstractVector
1 parent 152771d commit 21f221c

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/BesselFunctions/besseli.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ function _besseli(nu::Integer, x::T) where T <: Union{Float32, Float64}
451451
end
452452

453453
"""
454-
Bessels.besseli!(out::DenseVector{T}, ν::AbstractRange, x::T)
454+
Bessels.besseli!(out::AbstractVector{T}, ν::AbstractRange, x::T)
455455
456456
Computes the modified Bessel function, ``I_ν(x)``, of the first kind at many orders `ν` in-place using recurrence.
457457
The conditions `ν[1] >= 0` and `step(ν) == 1` must be met.
@@ -470,9 +470,9 @@ julia> Bessels.besseli!(out, nu, x)
470470
471471
See also: [`besseli(ν, x)`](@ref Bessels.besseli(ν, x))
472472
"""
473-
besseli!(out::DenseVector, nu::AbstractRange, x) = _besseli!(out, nu, float(x))
473+
besseli!(out::AbstractVector, nu::AbstractRange, x) = _besseli!(out, nu, float(x))
474474

475-
function _besseli!(out::DenseVector{T}, nu::AbstractRange, x::T) where T
475+
function _besseli!(out::AbstractVector{T}, nu::AbstractRange, x::T) where T
476476
(nu[1] >= 0 && step(nu) == 1) || throw(ArgumentError("nu must be >= 0 with step(nu)=1"))
477477
len = length(out)
478478
!isequal(len, length(nu)) && throw(ArgumentError("out and nu must have the same length"))

src/BesselFunctions/besselj.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function _besselj(nu::Integer, x::T) where T <: Union{Float32, Float64}
294294
end
295295

296296
"""
297-
Bessels.besselj!(out::DenseVector{T}, ν::AbstractRange, x::T)
297+
Bessels.besselj!(out::AbstractVector{T}, ν::AbstractRange, x::T)
298298
299299
Computes the Bessel function, ``j_ν(x)``, of the first kind at many orders `ν` in-place using recurrence.
300300
The conditions `ν[1] >= 0` and `step(ν) == 1` must be met.
@@ -313,9 +313,9 @@ julia> Bessels.besselj!(out, nu, x)
313313
314314
See also: [`besselj(ν, x)`](@ref Bessels.besselj(ν, x))
315315
"""
316-
besselj!(out::DenseVector, nu::AbstractRange, x) = _besselj!(out, nu, float(x))
316+
besselj!(out::AbstractVector, nu::AbstractRange, x) = _besselj!(out, nu, float(x))
317317

318-
function _besselj!(out::DenseVector{T}, nu::AbstractVector, x::T) where T <: Union{Float32, Float64}
318+
function _besselj!(out::AbstractVector{T}, nu::AbstractVector, x::T) where T <: Union{Float32, Float64}
319319
(nu[begin] >= 0 && step(nu) == 1) || throw(ArgumentError("nu must be >= 0 with step(nu)=1"))
320320
len = length(out)
321321
!isequal(len, length(nu)) && throw(ArgumentError("out and nu must have the same length"))

src/BesselFunctions/besselk.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function _besselk(nu::Integer, x::T) where T <: Union{Float32, Float64}
258258
end
259259

260260
"""
261-
Bessels.besselk!(out::DenseVector{T}, ν::AbstractRange, x::T)
261+
Bessels.besselk!(out::AbstractVector{T}, ν::AbstractRange, x::T)
262262
263263
Computes the modified Bessel function, ``K_ν(x)``, of the second kind at many orders `ν` in-place using recurrence.
264264
The conditions `ν[1] >= 0` and `step(ν) == 1` must be met.
@@ -277,9 +277,9 @@ julia> Bessels.besselk!(out, nu, x)
277277
278278
See also: [`besselk(ν, x)`](@ref Bessels.besselk(ν, x))
279279
"""
280-
besselk!(out::DenseVector, nu::AbstractRange, x) = _besselk!(out, nu, float(x))
280+
besselk!(out::AbstractVector, nu::AbstractRange, x) = _besselk!(out, nu, float(x))
281281

282-
function _besselk!(out::DenseVector{T}, nu::AbstractRange, x::T) where T
282+
function _besselk!(out::AbstractVector{T}, nu::AbstractRange, x::T) where T
283283
(nu[1] >= 0 && step(nu) == 1) || throw(ArgumentError("nu must be >= 0 with step(nu)=1"))
284284
len = length(out)
285285
!isequal(len, length(nu)) && throw(ArgumentError("out and nu must have the same length"))

src/BesselFunctions/bessely.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ function _bessely(nu::Integer, x::T) where T <: Union{Float32, Float64}
327327
end
328328

329329
"""
330-
Bessels.bessely!(out::DenseVector{T}, ν::AbstractRange, x::T)
330+
Bessels.bessely!(out::AbstractVector{T}, ν::AbstractRange, x::T)
331331
332332
Computes the Bessel function, ``Y_ν(x)``, of the second kind at many orders `ν` in-place using recurrence.
333333
The conditions `ν[1] >= 0` and `step(ν) == 1` must be met.
@@ -346,9 +346,9 @@ julia> Bessels.bessely!(out, nu, x)
346346
347347
See also: [`bessely(ν, x)`](@ref Bessels.bessely(ν, x))
348348
"""
349-
bessely!(out::DenseVector, nu::AbstractRange, x) = _bessely!(out, nu, float(x))
349+
bessely!(out::AbstractVector, nu::AbstractRange, x) = _bessely!(out, nu, float(x))
350350

351-
function _bessely!(out::DenseVector{T}, nu::AbstractRange, x::T) where T
351+
function _bessely!(out::AbstractVector{T}, nu::AbstractRange, x::T) where T
352352
(nu[begin] >= 0 && step(nu) == 1) || throw(ArgumentError("nu must be >= 0 with step(nu)=1"))
353353
!isequal(length(out), length(nu)) && throw(ArgumentError("out and nu must have the same length"))
354354
out[begin], out[begin + 1] = _bessely(nu[begin], x), _bessely(nu[begin + 1], x)

0 commit comments

Comments
 (0)