BSD Ports

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

SystemPortVersion
FreeBSDmath/p5-Math-Symbolic-Custom-CCompiler1.04_2
DragonFlymath/p5-Math-Symbolic-Custom-CCompiler1.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.04_21.04_21.04_21.04_21.04_2
FreeBSD:14:quarterly1.04_21.04_2n/a1.04_21.04_2
FreeBSD:15:latest1.04_21.04_2n/a1.04_21.04_2
FreeBSD:15:quarterly1.04_21.04_2n/an/an/a
FreeBSD:16:latest1.04_21.04_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

Runtime 3

The full lists below include those, and their dependencies in turn.

Build dependencies 8
Run dependencies 8

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
FileSizeSHA256
Math-Symbolic-Custom-CCompiler-1.04.tar.gz5188678ed7caceb1e2aee6f6a37f31aa67f24fc3e6270c87506ffec47f94b102fccd
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.