ndd_create_inequation, ndd_create_inequation_lsdf, ndd_create_inequation_msdf[ Synopsis | Description | Return values | Diagnostics | See also | Back to the NDD package documentation ] |
#include "lash-ndd.h"
ndd *ndd_create_inequation_lsdf(uint1 r, uint4 n, sint4 *c, sint4 b);
ndd *ndd_create_inequation_msdf(uint1 r, uint4 n, sint4 *c, sint4 b);
ndd *ndd_create_inequation(uint1 r, uint4 n, sint4 *c, sint4 b);
c[0] x1 + c[1] x2 + ... + c[n-1] xn <= b
The numeration base is r. The NDDs created by ndd_create_inequation_msdf operate most significant digit first, and those created by ndd_create_inequation_lsdf least significant digit first.
The macro ndd_create_inequation can be used for creating an NDD operating in the default direction.
If the dimension n is zero, then the functions return a universal NDD if b >= 0, and an empty NDD otherwise.
[ Synopsis | Description | Return values | Diagnostics | See also | Back to the NDD package documentation ] |