From bfc2de663edd9fc42ed570379e299e73a1305670 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Mon, 11 Dec 2023 08:20:46 +0100 Subject: [PATCH] format --- src/BSeries.jl | 3 +- src/precompile.jl | 77 +++++++++++++++++++---------------------------- 2 files changed, 32 insertions(+), 48 deletions(-) diff --git a/src/BSeries.jl b/src/BSeries.jl index 46bf0560..ef4592fc 100644 --- a/src/BSeries.jl +++ b/src/BSeries.jl @@ -890,8 +890,7 @@ function bseries(mis::MultirateInfinitesimalSplitMethod, order) poly_one = Polynomial{V, :x}([one(V)]) poly_zero = zero(poly_one) - prototype_polynomial = TruncatedBSeries{ - BicoloredRootedTree{Int, Vector{Int}, + prototype_polynomial = TruncatedBSeries{BicoloredRootedTree{Int, Vector{Int}, Vector{Bool}}, typeof(poly_one)}() prototype_polynomial[rootedtree(Int[], Bool[])] = poly_one diff --git a/src/precompile.jl b/src/precompile.jl index 81f50af2..0dca5fd2 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -122,90 +122,75 @@ function _precompile_() Vector{Rational{Int64}}, Int64}) # time: 0.28764844 Base.precompile(Tuple{typeof(bseries), AdditiveRungeKuttaMethod{Rational{Int64}, - Vector{ - RungeKuttaMethod{Rational{Int64}, - Matrix{ - Rational{ - Int64 - } - }, - Vector{ - Rational{ - Int64 - } - }}}}, + Vector{RungeKuttaMethod{Rational{Int64}, + Matrix{Rational{Int64}}, + Vector{Rational{Int64}}}}}, Int64}) # time: 0.24456108 Base.precompile(Tuple{typeof(bseries), - RosenbrockMethod{Float64, Matrix{Float64}, Vector{Float64}}, Int64 - }) # time: 0.11124245 + RosenbrockMethod{Float64, Matrix{Float64}, Vector{Float64}}, + Int64}) # time: 0.11124245 Base.precompile(Tuple{Core.kwftype(typeof(compose)), NamedTuple{(:normalize_stepsize,), Tuple{Bool}}, typeof(compose), - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}, - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}, - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}}) # time: 0.052562617 + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}, + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}, + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}}) # time: 0.052562617 Base.precompile(Tuple{typeof(modified_equation), TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Float64}}) # time: 0.029089022 Base.precompile(Tuple{typeof(modified_equation), - TruncatedBSeries{ - BicoloredRootedTree{Int64, Vector{Int64}, + TruncatedBSeries{BicoloredRootedTree{Int64, Vector{Int64}, Vector{Bool}}, Rational{Int64}}}) # time: 0.026970008 Base.precompile(Tuple{typeof(-), - TruncatedBSeries{ - BicoloredRootedTree{Int64, Vector{Int64}, + TruncatedBSeries{BicoloredRootedTree{Int64, Vector{Int64}, Vector{Bool}}, Rational{Int64}}, - TruncatedBSeries{ - BicoloredRootedTree{Int64, Vector{Int64}, + TruncatedBSeries{BicoloredRootedTree{Int64, Vector{Int64}, Vector{Bool}}, Rational{Int64}}}) # time: 0.024954015 Base.precompile(Tuple{typeof(bseries), Function, Int64}) # time: 0.021058364 Base.precompile(Tuple{typeof(order_of_accuracy), - TruncatedBSeries{ - BicoloredRootedTree{Int64, Vector{Int64}, + TruncatedBSeries{BicoloredRootedTree{Int64, Vector{Int64}, Vector{Bool}}, Rational{Int64}}}) # time: 0.018548366 Base.precompile(Tuple{typeof(-), - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}, - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}}) # time: 0.015549354 + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}, + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}}) # time: 0.015549354 Base.precompile(Tuple{Type{ExactSolution}, - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}}) # time: 0.014666914 + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}}) # time: 0.014666914 Base.precompile(Tuple{typeof(order_of_accuracy), - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}}) # time: 0.012643992 + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}}) # time: 0.012643992 Base.precompile(Tuple{typeof(-), TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Float64}, TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Float64}}) # time: 0.010377383 Base.precompile(Tuple{typeof(modified_equation), - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}}) # time: 0.009575064 + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}}) # time: 0.009575064 Base.precompile(Tuple{Type{ExactSolution}, - TruncatedBSeries{ - BicoloredRootedTree{Int64, Vector{Int64}, + TruncatedBSeries{BicoloredRootedTree{Int64, Vector{Int64}, Vector{Bool}}, Rational{Int64}}}) # time: 0.008866523 Base.precompile(Tuple{typeof(getindex), - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}, + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}, RootedTree{Int64, SubArray{Int64, 1, Vector{Int64}, Tuple{UnitRange{Int64}}, true}}}) # time: 0.008717881 Base.precompile(Tuple{Type{ExactSolution}, TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Float64}}) # time: 0.007198428 Base.precompile(Tuple{typeof(modifying_integrator), - TruncatedBSeries{ - BicoloredRootedTree{Int64, Vector{Int64}, + TruncatedBSeries{BicoloredRootedTree{Int64, Vector{Int64}, Vector{Bool}}, Rational{Int64}}}) # time: 0.001966412 Base.precompile(Tuple{typeof(modifying_integrator), - TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Rational{Int64 - }}}) # time: 0.001889854 + TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, + Rational{Int64}}}) # time: 0.001889854 Base.precompile(Tuple{typeof(modifying_integrator), TruncatedBSeries{RootedTree{Int64, Vector{Int64}}, Float64}}) # time: 0.001581901 end