make_interval_helper< ball< C, R, V >, C2 > Struct Template Reference

#include <ball.hpp>

List of all members.

Static Public Member Functions


Detailed Description

template<typename C, typename R, typename V, typename C2>
struct mmx::make_interval_helper< ball< C, R, V >, C2 >

Definition at line 94 of file ball.hpp.


Member Function Documentation

static ball<C,R,V> val ( const C2 l,
const C2 r 
) [inline, static]

Definition at line 95 of file ball.hpp.

References Ball, mmx::C2, mmx::decexp2(), mmx::max(), mmx::next_above(), R, Round_up, Up, and VERIFY.

00095                                                     {
00096     typedef Round_up(C2) Up;
00097     VERIFY (l <= r, "bad interval");
00098     C2 cc= decexp2 (l+r, 1);
00099     R  rr= next_above (as<R> (max (Up::sub (r, cc), Up::sub (cc, l))));
00100     return Ball (cc, rr);
00101   }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1