[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Use of NewPolka

To use NEWPOLKA in C, add
 
#include "pk.h"
in your source file(s) and add `-I$(POLKA_PREFIX)/include' in the command line in your Makefile.

You should also link your object files with the NEWPOLKA library to produce an executable, by adding something like `-L$(POLKA_PREFIX)/li -lpolkag_debug' in the command line in your Makefile.

There are actually several variants of the library:

`libpolkai.a'
The underlying representation for integers is long int. This may easily cause overflows, especially with many dimensions or variables. Overflows are not detected but usually result in infinite looping.
`libpolkal.a'
The underlying representation for integers is long long int. This may (less) easily cause overflows.
`libpolkag.a'
The underlying representation for integers is mpz_t, the multi-precision integers from the GNU GMP library. Overflows are not possible any more, but huge numbers may appear.

There is a way to prevent overflow and/or huge numbers, which is to position the options max_coeff_size and approximate_max_coeff_size, see Allocating NewPolka managers and setting options.

Also, all library are available in debug mode (`libpolkai_debug.a', ....



This document was generated on December, 22 2006 using texi2html