sqrt_op Struct Reference

#include <operators.hpp>

List of all members.

Static Public Member Functions


Detailed Description

Definition at line 1187 of file operators.hpp.


Member Function Documentation

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

Definition at line 1200 of file operators.hpp.

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

01200                                 {
01201     if (f[0] == 0) {
01202       nat val= 0;
01203       for (val=0; val< C::get_cancel_order () && f[val] == 0; val++) {};
01204       ASSERT (val< C::get_cancel_order () , "valuation too high");
01205       ASSERT ((val&1) == 0, "square root is not a series");
01206       return lshiftz (sqrt (rshiftz (f, (int) val)), (int) (val/2));
01207     }
01208     return integrate (derive (f) / (2*me)); }

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

Definition at line 1196 of file operators.hpp.

References mmx::derive().

01196                                     {
01197     return derive (x) / (2 * me); }

static generic name (  )  [inline, static]

Definition at line 1188 of file operators.hpp.

References mmx::GEN_SQRT.

01188 { return GEN_SQRT; }

static nat nr_init (  )  [inline, static]

Definition at line 1198 of file operators.hpp.

01198 { return 1; }

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

Definition at line 1190 of file operators.hpp.

References mmx::sqrt().

01190 { return sqrt (x); }

static C op_init ( const C x,
const I &  i 
) [inline, static]

Definition at line 1194 of file operators.hpp.

References mmx::sqrt_init().

01194 { return sqrt_init (x, i); }

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

Definition at line 1192 of file operators.hpp.

References mmx::sqrt().

01192 { x= sqrt (y); }


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

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1