[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To use NEWPOLKA in C, add
#include "pk.h" |
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:
long int
. This
may easily cause overflows, especially with many dimensions or
variables. Overflows are not detected but usually result in infinite
looping.
long long int
. This
may (less) easily cause overflows.
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', ....