31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

void x.add(const residual& a, const residual& b)<br />

sets x to a + b.<br />

void x.sub(const residual& a, const residual& b)<br />

sets x to a − b.<br />

void x.mul(const residual& a, const residual& b)<br />

sets x to a ∗ b.<br />

void x.div(const residual& a, const residual& b)<br />

sets x to a/b.<br />

void x.det2x2(const residual& a, const residual& b, const residual& c,<br />

const residual& d)<br />

sets x to a ∗ d − b ∗ c.<br />

void x.inverse(const residual& a)<br />

void x.negate(const residual& a)<br />

sets x to the modular inverse of a.<br />

x.in invertible is true.<br />

sets x to −a.<br />

Precondition:<br />

<strong>The</strong> following functions provide direct read-only access to the internal representation of<br />

residual objects. <strong>The</strong>y should only be used by the experienced user after reading the full<br />

documentation of type residual.<br />

residual sequence residual :: get primetable( )<br />

residual sequence residual :: get garnertable( )<br />

residual sequence get representation( )<br />

returns a copy of the currently used primetable<br />

returns a copy of the currently used table of Garner’s<br />

constants<br />

returns a copy of the residual sequence representing<br />

x

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!