An open API service indexing awesome lists of open source software.

https://github.com/steleman/mathutils

some simple but practical math utilities
https://github.com/steleman/mathutils

Last synced: over 1 year ago
JSON representation

some simple but practical math utilities

Awesome Lists containing this project

README

          

# mathutils
Some simple but practical math utilities

- findprimes no longer uses OpenMP. It now uses POSIX threads, minimum of 4.
- added Makefile.aocc and Makefile.icc for the AOCC (AMD) and ICC (Intel) compilers.
- primefactors can only handle 32-bit and 64-bit unsigned integers. Run as:

```%> ./primefactors ```

- primefactorsmp and findprimesmp use GNU MP (GMP) and can handle unsigned integers of
arbitrary bit width.
- findprimesmp uses POSIX threads, minimum of 4.
- If you run `findprimesmp -h` or `primefactorsmp -h` it will show you all the command
line options:

```
%> ./primefactorsmp -h
Usage: primefactorsmp -b
%> ./findprimesmp -h
Usage: findprimesmp -s (default 18446744073709551615)
-e
[ -b (default 128)]
[ -T (default 4)]
[ -f (default stdout)]
[ -p (print header at the top)]
[ -t (print prime discovery time)]
```