basix_doc 0.1
add_op Struct Reference

#include <operators.hpp>

List of all members.

Public Types

Static Public Member Functions


Detailed Description

Definition at line 401 of file operators.hpp.


Member Typedef Documentation

typedef id_op lop

Definition at line 402 of file operators.hpp.

typedef id_op rop

Definition at line 403 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 417 of file operators.hpp.

References mmx::derive().

                                                {
    (void) me; return derive (x) + derive (y); }
static generic name ( ) [inline, static]

Definition at line 404 of file operators.hpp.

References mmx::GEN_PLUS.

{ return GEN_PLUS; }
static C neutral ( ) [inline, static]

Definition at line 407 of file operators.hpp.

{ return 0; }
static C op ( const C x,
const C y 
) [inline, static]

Definition at line 411 of file operators.hpp.

{ return x + y; }
static C op_mod ( const C x,
const C y,
const M &  p 
) [inline, static]

Definition at line 420 of file operators.hpp.

References mmx::C.

                                              {
    C z; add_mod (z, x, y, p); return z; }
static C op_mod ( const C x,
const C y,
const M &  p,
C carry 
) [inline, static]

Definition at line 423 of file operators.hpp.

References mmx::C.

                                                        {
    C z; add_mod (z, x, y, p, carry); return z; }
static generic set_name ( ) [inline, static]

Definition at line 405 of file operators.hpp.

References mmx::GEN_PLUS_ASSIGN.

{ return GEN_PLUS_ASSIGN; }
static void set_neutral ( R &  r) [inline, static]

Definition at line 409 of file operators.hpp.

References mmx::set_zero().

{ set_zero (r); }
static void set_op ( R &  x,
const C1 &  y1,
const C2 y2 
) [inline, static]

Definition at line 415 of file operators.hpp.

References mmx::add().

{ add (x, y1, y2); }
static void set_op ( R &  x,
const C y 
) [inline, static]

Definition at line 413 of file operators.hpp.

{ x += y; }
static void set_op_mod ( C x,
const C y,
const M &  p 
) [inline, static]

Definition at line 426 of file operators.hpp.

                                            {
    add_mod (x, y, p); }
static void set_op_mod ( C x,
const C y1,
const C y2,
const M &  p,
C carry 
) [inline, static]

Definition at line 435 of file operators.hpp.

                                                                    {
    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 432 of file operators.hpp.

                                                          {
    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 429 of file operators.hpp.

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

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines