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
- Host: GitHub
- URL: https://github.com/steleman/mathutils
- Owner: steleman
- License: gpl-3.0
- Created: 2019-09-01T18:00:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-18T00:00:45.000Z (over 2 years ago)
- Last Synced: 2025-01-13T21:44:18.916Z (over 1 year ago)
- Language: C++
- Size: 64.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)]
```