add_op Struct Reference

#include <operators.hpp>

List of all members.

Public Types

Static Public Member Functions


Detailed Description

Definition at line 427 of file operators.hpp.


Member Typedef Documentation

typedef id_op lop

Definition at line 428 of file operators.hpp.

typedef id_op rop

Definition at line 429 of file operators.hpp.


Member Function Documentation

static C diff_op ( const C me,
const C x,
const C y 
) [inline, static]

Definition at line 443 of file operators.hpp.

References mmx::derive().

00443                                                 {
00444     (void) me; return derive (x) + derive (y); }

static generic name (  )  [inline, static]

Definition at line 430 of file operators.hpp.

References mmx::GEN_PLUS.

00430 { return GEN_PLUS; }

static C neutral (  )  [inline, static]

Definition at line 433 of file operators.hpp.

00433 { return 0; }

static C op ( const C x,
const C y 
) [inline, static]

Definition at line 437 of file operators.hpp.

00437 { return x + y; }

static C op_mod ( const C x,
const C y,
const M &  p,
C carry 
) [inline, static]

Definition at line 449 of file operators.hpp.

References mmx::C.

00449                                                         {
00450     C z; add_mod (z, x, y, p, carry); return z; }

static C op_mod ( const C x,
const C y,
const M &  p 
) [inline, static]

Definition at line 446 of file operators.hpp.

References mmx::C.

00446                                               {
00447     C z; add_mod (z, x, y, p); return z; }

static generic set_name (  )  [inline, static]

Definition at line 431 of file operators.hpp.

References mmx::GEN_PLUS_ASSIGN.

00431 { return GEN_PLUS_ASSIGN; }

static void set_neutral ( R &  r  )  [inline, static]

Definition at line 435 of file operators.hpp.

References mmx::set_zero().

00435 { set_zero (r); }

static void set_op ( R &  x,
const C1 &  y1,
const C2 y2 
) [inline, static]

Definition at line 441 of file operators.hpp.

References mmx::add().

00441 { add (x, y1, y2); }

static void set_op ( R &  x,
const C y 
) [inline, static]

Definition at line 439 of file operators.hpp.

00439 { x += y; }

static void set_op_mod ( C x,
const C y1,
const C y2,
const M &  p,
C carry 
) [inline, static]

Definition at line 461 of file operators.hpp.

00461                                                                     {
00462     add_mod (x, y1, y2, p, carry); }

static void set_op_mod ( C x,
const C y1,
const C y2,
const M &  p 
) [inline, static]

Definition at line 458 of file operators.hpp.

00458                                                           {
00459     add_mod (x, y1, y2, p); }

static void set_op_mod ( C x,
const C y,
const M &  p,
C carry 
) [inline, static]

Definition at line 455 of file operators.hpp.

00455                                                       {
00456     add_mod (x, y, p, carry); }

static void set_op_mod ( C x,
const C y,
const M &  p 
) [inline, static]

Definition at line 452 of file operators.hpp.

00452                                             {
00453     add_mod (x, y, p); }


The documentation for this struct was generated from the following file:

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1