ndd_inclusion


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

Synopsis

#include "lash-ndd.h"

int ndd_inclusion(ndd *nd1, ndd *nd2);

Description

This function tests whether the set represented by the NDD *nd1is included in the set represented by the NDD *nd2. These two NDD must use the same base and be of the same type and dimension. They are not modified by this function.

Return values

In the case of success, this function returns a Boolean value (1 if the first set is a subset of the second one, 0 otherwise). In the case of an error, it returns -1 and sets lash_errno.

Diagnostics

LASH_ERR_NOT_INIT
The package has not been initialized.
LASH_ERR_BAD_TYPE
Bad type of NDD.
LASH_ERR_DIMENSION
Dimension mismatch.
LASH_ERR_BASE
Base mismatch.
LASH_ERR_NO_MEM
Insufficient memory.
LASH_ERR_CORRUPT
Corrupt NDD.

See also

ndd_is_empty, ndd_equality.

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