math/p5-Math-Symbolic-Custom-CCompiler 1.04_2 FreeBSD
Compile Math::Symbolic trees to C
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- math, perl5
- Package size
- 10.1 KiB, 17.9 KiB installed
Description
This module extends the functionality of Math::Symbolic by offering facilities to compile symbolic math trees (formulas) to C code. It also uses Inline::C to compile and link the generated C code at run-time, thus allowing the user to do symbolic calculations in Perl with Math::Symbolic and then use the results in a fast numeric environment.
This software generates code. Code generators are difficult to test, but the first release of the module is now 1.5 years old and I haven't received any bug reports, so I consider it somewhat stable now.
Please read the manpage of Math::Symbolic::Compiler which comes with the Math::Symbolic distribution. Most of the gotchas involved with compiling the functions to Perl subroutines also apply to this module which compiles to C instead.
Alternatively, you can use the module not for faster calculations from your Perl program, but to generate C code for you. I have used it to generate an implementation for (many!) Zernike Polynomials for work in C.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | math/p5-Math-Symbolic-Custom-CCompiler | 1.04_2 |
| DragonFly | math/p5-Math-Symbolic-Custom-CCompiler | 1.04_2 |
Install
Binary package:
pkg install p5-Math-Symbolic-Custom-CCompiler
From the ports tree:
cd /usr/ports/math/p5-Math-Symbolic-Custom-CCompiler/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Math-Symbolic-Custom-CCompiler>0:math/p5-Math-Symbolic-Custom-CCompiler
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.04_2 | 1.04_2 | 1.04_2 | 1.04_2 | 1.04_2 |
| FreeBSD:14:quarterly | 1.04_2 | 1.04_2 | n/a | 1.04_2 | 1.04_2 |
| FreeBSD:15:latest | 1.04_2 | 1.04_2 | n/a | 1.04_2 | 1.04_2 |
| FreeBSD:15:quarterly | 1.04_2 | 1.04_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.04_2 | 1.04_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 3
p5-Math-Symbolic>=0.509: math/p5-Math-Symbolicp5-Inline>=0.44: devel/p5-Inlinep5-Inline-C>=0.44: devel/p5-Inline-C
Runtime 3
p5-Math-Symbolic>=0.509: math/p5-Math-Symbolicp5-Inline>=0.44: devel/p5-Inlinep5-Inline-C>=0.44: devel/p5-Inline-C
The full lists below include those, and their dependencies in turn.
Build dependencies 8
Run dependencies 8
Required by 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%PERL5_MAN3%%/Math::Symbolic::Custom::CCompiler.3.gz
- %%SITE_PERL%%/Math/Symbolic/Custom/CCompiler.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Math-Symbolic-Custom-CCompiler-1.04.tar.gz | 5188 | 678ed7caceb1e2aee6f6a37f31aa67f24fc3e6270c87506ffec47f94b102fccd |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.