ndd_transf_compose


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

Synopsis

#include "lash-ndd.h"

linear_transf *ndd_transf_compose(linear_transf *t1, linear_transf *t2);

Description

This function composes the two linear transformations t1 and t2 into a linear transformation f such that f(x) = t2(t1(x)) for every x. The transformations t1 and t2 are not modified.

Return values

In the case of success, this function returns a pointer to a newly allocated linear transformation structure. In the case of an error, it returns a NULL pointer and sets lash_errno.

Diagnostics

LASH_ERR_NOT_INIT
The package has not been initialized.
LASH_ERR_NO_MEM
Insufficient memory.
LASH_ERR_CORRUPT
Corrupt transformation structure.
LASH_ERR_OVERFLOW
Arithmetic overflow.
LASH_ERR_DIMENSION
Dimension mismatch.

See also

linear_transf, ndd_create_transf, ndd_transf_power.

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