Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/LibraryAugmentedSymbolicRegression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ using ConstructionBase: ConstructionBase as _
include("precompile.jl")
redirect_stdout(devnull) do
redirect_stderr(devnull) do
do_precompilation(Val(:precompile))
return do_precompilation(Val(:precompile))
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/Parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function _normalize_expr_string(s::AbstractString)
# TODO: Right now, making all variables lowercase. This might not always be desired.
s = lowercase(s)
s = replace(s, r"\*\*" => "^")
strip(s)
return strip(s)
end

"""
Expand Down
2 changes: 1 addition & 1 deletion src/Utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const vals = ntuple(Val, max_ops)

"""Return the bottom k elements of x, and their indices."""
function bottomk_fast(x::AbstractVector{T}, k) where {T}
_bottomk_dispatch(x, vals[k])::Tuple{Vector{T},Vector{Int}}
return _bottomk_dispatch(x, vals[k])::Tuple{Vector{T},Vector{Int}}
end

function _bottomk_dispatch(x::AbstractVector{T}, ::Val{k}) where {T,k}
Expand Down