basix_doc 0.1
sqrt_op Struct Reference

#include <operators.hpp>

List of all members.

Static Public Member Functions


Detailed Description

Definition at line 1140 of file operators.hpp.


Member Function Documentation

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

Definition at line 1153 of file operators.hpp.

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

                                {
    if (f[0] == 0) {
      nat val= 0;
      for (val=0; val< C::get_cancel_order () && f[val]==0; val++);
      ASSERT (val< C::get_cancel_order () , "valuation too high");
      ASSERT ((val&1) == 0, "square root is not a series");
      return lshiftz (sqrt (rshiftz (f, (int) val)), (int) (val/2));
    }
    return integrate (derive (f) / (2*me)); }
static C diff_op ( const C me,
const C x 
) [inline, static]

Definition at line 1149 of file operators.hpp.

References mmx::derive().

                                    {
    return derive (x) / (2 * me); }
static generic name ( ) [inline, static]

Definition at line 1141 of file operators.hpp.

References mmx::GEN_SQRT.

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

Definition at line 1151 of file operators.hpp.

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

Definition at line 1143 of file operators.hpp.

References mmx::sqrt().

{ return sqrt (x); }
static C op_init ( const C x,
const I &  i 
) [inline, static]

Definition at line 1147 of file operators.hpp.

References mmx::sqrt_init().

{ return sqrt_init (x, i); }
static void set_op ( R &  x,
const C y 
) [inline, static]

Definition at line 1145 of file operators.hpp.

References mmx::sqrt().

{ x= sqrt (y); }

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