Skip to content

JuliaFolds/LoopRecipes.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LoopRecipes: composable loops

Dev GitHub Actions

LoopRecipes.jl provides several constructs for high-performance loops based on the extended foldl protocol of Transducers.jl.

See more in the documentation.

API summary

  • unroll(factor, xs): Unroll an array xs by a given factor.
  • prefetching(xs): Prefetch each element in xs. It works when xs is a nested data structure (e.g., vector of vectors, vector of strings).
  • simdeachindex([width,] xs): Iterate over indices of xs using SIMD.VecRange. It also takes care of the remainder loop.
  • simdpairs([width,] xs): Iterate over index-value pairs of xs using SIMD.VecRange and SIMD.Vec. It also takes care of the remainder loop.
  • simdstored([width,] xs): For a sparse array xs, iterate over stored index-value pairs of xs using SIMD.Vec. It also takes care of the remainder loop.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages