Packages for scientific computing in Dart.
The repository is structured as a standard Dart workspace monorepo under pubspec.yaml:
- pkgs/num_dart: The core scientific tensor package. It supports n-dimensional arrays (
NDArray), universal element-wise ufuncs, advanced multidimensional stride slicing, logical reductions, and Marsaglia-RNG distributions. - pkgs/openblas: Minimalistic FFI bindings layer wrapping OpenBLAS cblas and LAPACK headers. Includes compile hooks to build OpenBLAS from source tarballs.
- pkgs/pocketfft: Native FFI wrappers around KissFFT mixed-radix discrete Fourier transform plans.
To fetch dependencies and prepare the workspace for all packages at once:
dart pub getEnsure formatting and analyzer guidelines pass perfectly before pushing to a pull request:
dart format .
dart analyzeTo run all tests from the root workspace folder:
dart test pkgs/*To measure test coverage metrics inside num_dart, navigate to pkgs/num_dart and run:
dart tool/generate_coverage.dartThis workspace is licensed under the Apache License, Version 2.0.
This is not an official Google product.