implementation< ball_additive, W, ball_rounded > Struct Template Reference

#include <ball_rounded.hpp>

List of all members.

Public Types

Static Public Member Functions


Detailed Description

template<typename W>
struct mmx::implementation< ball_additive, W, ball_rounded >

Definition at line 129 of file ball_rounded.hpp.


Member Typedef Documentation

typedef implementation<ball_rounding,W> Rnd

Definition at line 130 of file ball_rounded.hpp.


Member Function Documentation

static void add ( ball< C, R, V > &  d,
const ball< C, R, V > &  z1,
const C z2 
) [inline, static]

Definition at line 154 of file ball_rounded.hpp.

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

00154                                            {
00155   center (d)= center (z1) + z2;
00156   radius (d)= radius (z1);
00157   Rnd::add_additive_error (d);
00158 }

static void add ( ball< C, R, V > &  d,
const C z1,
const ball< C, R, V > &  z2 
) [inline, static]

Definition at line 147 of file ball_rounded.hpp.

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

00147                                            {
00148   center (d)= z1 + center (z2);
00149   radius (d)= radius (z2);
00150   Rnd::add_additive_error (d);
00151 }

static void add ( ball< C, R, V > &  d,
const ball< C, R, V > &  z1,
const ball< C, R, V > &  z2 
) [inline, static]

Definition at line 139 of file ball_rounded.hpp.

References mmx::add(), mmx::center(), R, mmx::radius(), Round_up, and Up.

00139                                               {
00140   typedef Round_up(R) Up;
00141   center (d)= center (z1) + center (z2);
00142   radius (d)= Up::add (radius (z1), radius (z2));
00143   Rnd::add_additive_error (d);
00144 }

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

Definition at line 133 of file ball_rounded.hpp.

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

00133                              {
00134   center (d)= -center (z);
00135   radius (d)= radius (z);
00136 }

static void sub ( ball< C, R, V > &  d,
const ball< C, R, V > &  z1,
const C z2 
) [inline, static]

Definition at line 176 of file ball_rounded.hpp.

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

00176                                            {
00177   center (d)= center (z1) - z2;
00178   radius (d)= radius (z1);
00179   Rnd::add_additive_error (d);
00180 }

static void sub ( ball< C, R, V > &  d,
const C z1,
const ball< C, R, V > &  z2 
) [inline, static]

Definition at line 169 of file ball_rounded.hpp.

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

00169                                            {
00170   center (d)= z1 - center (z2);
00171   radius (d)= radius (z2);
00172   Rnd::add_additive_error (d);
00173 }

static void sub ( ball< C, R, V > &  d,
const ball< C, R, V > &  z1,
const ball< C, R, V > &  z2 
) [inline, static]

Definition at line 161 of file ball_rounded.hpp.

References mmx::add(), mmx::center(), R, mmx::radius(), Round_up, and Up.

00161                                               {
00162   typedef Round_up(R) Up;
00163   center (d)= center (z1) - center (z2);
00164   radius (d)= Up::add (radius (z1), radius (z2));
00165   Rnd::add_additive_error (d);
00166 }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1