Function rc_poly_conv#

Function Documentation#

int rc_poly_conv(rc_vector_t a, rc_vector_t b, rc_vector_t *c)#

Convolutes the polynomials a&b and places the result in vector c.

This finds the coefficients of the polynomials resulting from multiply a*b. The original contents of c are freed and new memory is allocated if necessary.

Parameters:
  • a[in] First set of coefficients

  • b[in] Second set of coefficients

  • c[out] Vector to output resulting coefficients

Returns:

Returns 0 on success or -1 on failure.