Discover and explore top open-source AI tools and projects—updated daily.
ScaleFree-TechJava math library delivering NumPy-like performance
Top 94.4% on SourcePulse
Summary
YiShape-Math is a high-performance Java numerical computing library designed to provide functionalities akin to Python's NumPy and SciPy. It targets Java developers requiring advanced mathematical operations, data analysis, machine learning, and scientific computing capabilities within their applications. The library offers a familiar API style, significant performance optimizations through SIMD and an optional native Rust backend, making complex computations more accessible and efficient in the Java ecosystem.
How It Works
YiShape-Math employs a Java-based architecture with APIs meticulously designed to mirror modern Python numerical libraries. Core functionalities are organized into nine facade classes (e.g., Linalg, DataFrame, ML, Stats). Performance is a key focus, achieved through Java Vector API (SIMD) for vectorized operations and an optional High-Performance Computing (HPC) mode that leverages JNI/FFM to call highly optimized Rust native libraries (like Faer and Highs). This multi-backend approach allows users to select between pure Java scalar (SISD), SIMD-accelerated, or native Rust execution without altering business logic.
Quick Start & Requirements
yishape-math artifact via Maven Central or GitHub Packages. For the HPC backend, include yishape-math-hpc and ensure native libraries are accessible.--add-modules jdk.incubator.vector. For HPC, use --enable-native-access=ALL-UNNAMED.Highlighted Details
Maintenance & Community
The project is maintained by a consortium including research centers from UESTC, SWUFE, HAUT, and Chengdu Scale-Free Tech Ltd. Development appears active, with recent updates noted in the changelog. Primary community interaction and issue reporting are handled via GitHub Issues.
Licensing & Compatibility
YiShape-Math is released under the permissive MIT License. This license allows for free use, modification, distribution, and commercialization, provided the original copyright and license notice are retained. It is compatible with closed-source applications.
Limitations & Caveats
The library requires a very recent Java version (25). The high-performance HPC backend, while offering significant speedups, is optional and necessitates additional setup and JVM arguments. GPU acceleration has been temporarily removed. While examples are plentiful, comprehensive English documentation beyond the README is still under development.
1 week ago
Inactive
unum-cloud
szilard