Addition and subtraction

Functions

static void _fmpq_poly_add_in_place (fmpq_poly_ptr rop, const fmpq_poly_ptr op)
void fmpq_poly_add (fmpq_poly_ptr rop, const fmpq_poly_ptr op1, const fmpq_poly_ptr op2)
static void _fmpq_poly_sub_in_place (fmpq_poly_ptr rop, const fmpq_poly_ptr op)
void fmpq_poly_sub (fmpq_poly_ptr rop, const fmpq_poly_ptr op1, const fmpq_poly_ptr op2)
void fmpq_poly_addmul (fmpq_poly_ptr rop, const fmpq_poly_ptr op1, const fmpq_poly_ptr op2)
void fmpq_poly_submul (fmpq_poly_ptr rop, const fmpq_poly_ptr op1, const fmpq_poly_ptr op2)

Function Documentation

static void _fmpq_poly_add_in_place ( fmpq_poly_ptr  rop,
const fmpq_poly_ptr  op 
) [static]

Sets rop to the sum of rop and op.

Todo:
This is currently implemented by creating a copy!
static void _fmpq_poly_sub_in_place ( fmpq_poly_ptr  rop,
const fmpq_poly_ptr  op 
) [static]

Sets rop to the difference of rop and op.

Note:
This is implemented using the methods fmpq_poly_neg() and _fmpq_poly_add_in_place().
void fmpq_poly_add ( fmpq_poly_ptr  rop,
const fmpq_poly_ptr  op1,
const fmpq_poly_ptr  op2 
)

Sets rop to the sum of op1 and op2.

void fmpq_poly_addmul ( fmpq_poly_ptr  rop,
const fmpq_poly_ptr  op1,
const fmpq_poly_ptr  op2 
)

Sets rop to rop + op1 * op2.

Currently, this method refers to the methods fmpq_poly_mul() and fmpq_poly_add() to form the result in the naive way.

Todo:
Implement this method more efficiently.
void fmpq_poly_sub ( fmpq_poly_ptr  rop,
const fmpq_poly_ptr  op1,
const fmpq_poly_ptr  op2 
)

Sets rop to the difference of op1 and op2.

void fmpq_poly_submul ( fmpq_poly_ptr  rop,
const fmpq_poly_ptr  op1,
const fmpq_poly_ptr  op2 
)

Sets rop to rop - op1 * op2.

Currently, this method refers to the methods fmpq_poly_mul() and fmpq_poly_sub() to form the result in the naive way.

Todo:
Implement this method more efficiently.
Generated on Wed Dec 8 21:13:35 2010 for FMPQ_POLY by  doxygen 1.6.3