basix_doc 0.1
div_op Struct Reference

#include <operators.hpp>

List of all members.

Public Types

Static Public Member Functions


Detailed Description

Definition at line 676 of file operators.hpp.


Member Typedef Documentation

typedef ldiv_op sc_left

Definition at line 677 of file operators.hpp.

typedef rdiv_op sc_right

Definition at line 678 of file operators.hpp.


Member Function Documentation

static C def ( const C me,
const C f,
const C g 
) [inline, static]

Definition at line 692 of file operators.hpp.

References ASSERT, mmx::lshiftz(), mmx::rshiftz(), and mmx::val.

                                            {
    if (g[0] == 0) {
      nat val;
      for (val=0; g[val]==0; val++)
        ASSERT (val != C::get_cancel_order (),
                "valuation of denominator too high");
      return rshiftz (f, (int) val) / rshiftz (g, (int) val);
    }
    return (f - lshiftz (me * rshiftz (g))) / g[0]; }
static C diff_op ( const C me,
const C x,
const C y 
) [inline, static]

Definition at line 688 of file operators.hpp.

References mmx::derive(), and mmx::square().

                                                {
    (void) me; return (derive (x)*y - x*derive (y)) / square (y); }
static generic name ( ) [inline, static]

Definition at line 679 of file operators.hpp.

References mmx::GEN_OVER.

{ return GEN_OVER; }
static nat nr_init ( ) [inline, static]

Definition at line 690 of file operators.hpp.

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

Definition at line 682 of file operators.hpp.

{ return x / y; }
static generic set_name ( ) [inline, static]

Definition at line 680 of file operators.hpp.

References mmx::GEN_OVER_ASSIGN.

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

Definition at line 686 of file operators.hpp.

References mmx::div().

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

Definition at line 684 of file operators.hpp.

{ x /= y; }

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