ndd_create_equ_transf, ndd_create_inequ_transf


[ Synopsis | Description | Return values | Diagnostics | See also | Back to the NDD package documentation ]

Synopsis

#include "lash-ndd.h"

linear_transf *ndd_create_equ_transf(uint4 n, sint4 *p, sint4 q);
linear_transf *ndd_create_inequ_transf(uint4 n, sint4 *p, sint4 q);

Description

These functions create linear transformations corresponding respectively to the conditions

p[0]x0 + p[1]x1 + ... + p[n-1]xn-1 = q
and
p[0]x0 + p[1]x1 + ... + p[n-1]xn-1 <= q.

Return values

In the case of success, these functions return a pointer to a newly allocated linear transformation structure. In the case of an error, they return a NULL pointer and set lash_errno.

Diagnostics

LASH_ERR_NOT_INIT
The package has not been initialized.
LASH_ERR_NO_MEM
Insufficient memory.
LASH_ERR_BAD_VALUE
Invalid parameter.

See also

linear_transf, ndd_create_transf, ndd_create_identity_transf, ndd_create_assign_transf.

[ Synopsis | Description | Return values | Diagnostics | See also | Back to the NDD package documentation ]