Skip to content

Commit 79fb7fa

Browse files
author
Will Tebbutt
committed
__example_inputs -> example_inputs
1 parent dbc24c2 commit 79fb7fa

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/TestUtils.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,23 +177,23 @@ function test_interface(k::Kernel, T::Type{<:Real}=Float64; kwargs...)
177177
end
178178

179179
"""
180-
__example_inputs(rng::AbstractRNG, type)
180+
example_inputs(rng::AbstractRNG, type)
181181
182-
Return a tuple of 4 inputs of type `type`. See `methods(__example_inputs)` for information
182+
Return a tuple of 4 inputs of type `type`. See `methods(example_inputs)` for information
183183
around supported types. It is recommended that you utilise `StableRNGs.jl` for `rng` here
184184
to ensure consistency across Julia versions.
185185
"""
186-
function __example_inputs(rng::AbstractRNG, ::Type{Vector{Float64}})
186+
function example_inputs(rng::AbstractRNG, ::Type{Vector{Float64}})
187187
return map(n -> randn(rng, Float64, n), (1, 2, 3, 4))
188188
end
189189

190-
function __example_inputs(
190+
function example_inputs(
191191
rng::AbstractRNG, ::Type{ColVecs{Float64,Matrix{Float64}}}; dim::Int=2
192192
)
193193
return map(n -> ColVecs(randn(rng, dim, n)), (1, 2, 3, 4))
194194
end
195195

196-
function __example_inputs(
196+
function example_inputs(
197197
rng::AbstractRNG, ::Type{RowVecs{Float64,Matrix{Float64}}}; dim::Int=2
198198
)
199199
return map(n -> RowVecs(randn(rng, n, dim)), (1, 2, 3, 4))

test/basekernels/matern.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
ColVecs{Float64,Matrix{Float64}},
3232
RowVecs{Float64,Matrix{Float64}},
3333
]
34-
xs = __example_inputs(StableRNG(123456), Vector{Float64})
34+
xs = example_inputs(StableRNG(123456), Vector{Float64})
3535
test_interface_ad_perf(
3636
ν -> MaternKernel(; nu=ν),
3737
ν,

test/basekernels/piecewisepolynomial.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
test_interface_ad_perf(
4848
_ -> PiecewisePolynomialKernel{degree}(; dim=D),
4949
nothing,
50-
__example_inputs(StableRNG(123456), T)...;
50+
example_inputs(StableRNG(123456), T)...;
5151
passes=(
5252
unary=(true, true, false),
5353
binary=(true, true, false),

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ using Compat: only
2020

2121
using KernelFunctions: SimpleKernel, metric, kappa, ColVecs, RowVecs, TestUtils
2222

23-
using KernelFunctions.TestUtils: test_interface, __example_inputs
23+
using KernelFunctions.TestUtils: test_interface, example_inputs
2424

2525
# The GROUP is used to run different sets of tests in parallel on the GitHub Actions CI.
2626
# If you want to introduce a new group, ensure you also add it to .github/workflows/ci.yml

test/test_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ kernel e.g. where it's only valid for 1-dimensional inputs.
468468
"""
469469
function test_interface_ad_perf(f, θ, rng::AbstractRNG, types=__default_input_types())
470470
@testset "AD Alloc Performance ($T)" for T in types
471-
test_interface_ad_perf(f, θ, __example_inputs(rng, T)...)
471+
test_interface_ad_perf(f, θ, example_inputs(rng, T)...)
472472
end
473473
end
474474

0 commit comments

Comments
 (0)