FloatWeaverΒΆ
FloatWeaver is a header-mostly C++17 library for writing CUDA-style SIMD code that runs on the CPU.
- How-to guides
- Add two float8 vectors
- Pick a value without branching
- Take a square root
- Approximate reciprocal and reciprocal square root
- Branchless sign
- Compare floats with a tolerance
- Check a condition across all lanes
- Horizontal reduction: dot product
- Using FloatWeaver with Eigen
- Eigen vector arithmetic
- Squared norm and Eigen algorithms
- Cross product
- Branchless select over an Eigen vector
- Merge axis-aligned boxes