implementation< ball_root, W, ball_rough > Struct Template Reference

#include <ball_rough.hpp>

List of all members.

Static Public Member Functions


Detailed Description

template<typename W>
struct mmx::implementation< ball_root, W, ball_rough >

Definition at line 213 of file ball_rough.hpp.


Member Function Documentation

static void hypot ( ball< C, R, V > &  d,
const ball< C, R, V > &  x,
const ball< C, R, V > &  y 
) [inline, static]

Definition at line 227 of file ball_rough.hpp.

References mmx::center(), hypot_op::op(), and mmx::radius().

00227                                               {
00228   center (d)= hypot_op::op (center (x), center (y));
00229   radius (d)= hypot_op::op (radius (x), radius (y));
00230   add_rough_multiplicative_error (d);
00231 }

static void sqrt ( ball< C, R, V > &  d,
const ball< C, R, V > &  z 
) [inline, static]

Definition at line 216 of file ball_rough.hpp.

References Ball, mmx::center(), mmx::decexp2(), Nan, sqrt_op::op(), R, and mmx::radius().

00216                               {
00217   R l= as<R> (center (z)) - rough_next_above (radius (z));
00218   if (l <= 0) d= Nan (Ball);
00219   else {
00220     center (d)= sqrt_op::op (center (z));
00221     radius (d)= decexp2 (radius (z)) / sqrt_op::op (l);
00222     add_rough_multiplicative_error (d);
00223   }
00224 }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1