| module GPFiniteVolume |
|
|
| using PrecompileTools: @setup_workload, @compile_workload |
|
|
| |
| include("utils.jl") |
|
|
| |
| include("named_slices.jl") |
|
|
| |
| include("functional_types.jl") |
|
|
| |
| include("sparse_precision.jl") |
|
|
| |
| include("condition_precision.jl") |
|
|
| |
| include("linear_sdes.jl") |
| include("block_tridiagonal_prec.jl") |
| include("linear_ssm.jl") |
|
|
| |
| include("ekf_solver.jl") |
|
|
| |
| |
| |
|
|
| @setup_workload begin |
| using FunctionalGPs |
| import FunctionalGPs: β |
|
|
| @compile_workload begin |
| |
| xs_1d = range(0.0, 1.0, length=15) |
| intervals_1d = intervals_from_endpoints(collect(xs_1d)) |
| k_1d = HalfIntegerMaternKernel(2, [0.2]) |
|
|
| sparse_precision([ |
| :f => EvaluationFunctional(xs_1d), |
| :f_int => VectorizedLebesgueIntegral(intervals_1d), |
| ], k_1d; Ο=2.0) |
|
|
| |
| xs_2d = range(0.0, 1.0, length=8) |
| ys_2d = range(0.0, 1.0, length=8) |
| xi_2d = intervals_from_endpoints(collect(xs_2d)) |
| yi_2d = intervals_from_endpoints(collect(ys_2d)) |
| grid_2d = FactorizedGrid(xs_2d, ys_2d) |
| k_2d = HalfIntegerMaternKernel(2, [0.2]) β HalfIntegerMaternKernel(2, [0.2]) |
|
|
| sparse_precision([ |
| :c => EvaluationFunctional(grid_2d), |
| :c_vert => EvaluationFunctional(xs_2d) β VectorizedLebesgueIntegral(yi_2d), |
| ], k_2d; Ο=2.0) |
| end |
| end |
|
|
| end |
|
|