Specials: Accurate, Hardware Accelerated, Special Functions in Mojo

Specials is a Mojo package designed to provide highly-optimized and hardware-acceleration-friendly special functions implementations for AI computing. https://github.com/leandrolcampos/specials
6 Replies
Ethan
Ethan•6mo ago
Nice work! Could you add the 'erfinv' function?
Leandro Campos
Leandro CamposOP•6mo ago
Thanks for your interest! I added the erfinv function to the project's roadmap.
Ethan
Ethan•6mo ago
My attempt:
Ethan
Ethan•6mo ago
Take it if you want 🙂
Leandro Campos
Leandro CamposOP•4mo ago
BigInt in Specials In today's update (2024-08-18), I introduced the BigInt struct, an arbitrary, fixed bit-size integer with SIMD support, designed to enhance performance in arithmetic operations. This struct is a building block for implementing DyadicFloat, a component for handling higher precision floating-point numbers. DyadicFloat will be essential for state-of-the-art numerical methods in elementary functions [1, 2], where inputs need to be cast and manipulated as higher precision floating-point numbers to achieve correctly rounded results. [1] Lim, J. P., & Nagarakatte, S. (2022). One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes. Proceedings of the ACM on Programming Languages, 6(POPL), 1-28. [2] Sibidanov, A., Zimmermann, P., & Glondu, S. (2022, September). The CORE-MATH Project. In 2022 IEEE 29th Symposium on Computer Arithmetic (ARITH) (pp. 26-34). IEEE.
Jack Clayton
Jack Clayton•4mo ago
This is huge @Leandro Campos awesome!
Want results from more Discord servers?
Add your server