JuliaGaussianProcesses / KernelFunctions.jl

Julia package for kernel functions for machine learning
https://juliagaussianprocesses.github.io/KernelFunctions.jl/stable/
MIT License
266 stars 32 forks source link

Use `Iterators.peel`, reduce allocations, and add missing `kernelmatrix_diag!` definitions + tests #379

Closed devmotion closed 3 years ago

devmotion commented 3 years ago

This PR started with a small improvement (replace first + Iterators.drop with Iterators.peel) but lead to some more changes in the end :smile: So taken together, this PR

theogf commented 3 years ago

I did not know about peel it's very nice! LGTM if all tests pass