realroot_doc 0.1.1
domain< C > Struct Template Reference

#include <fatarcs.hpp>

List of all members.

Public Types

Public Member Functions

Public Attributes


Detailed Description

template<class C>
struct domain< C >

Definition at line 23 of file fatarcs.hpp.


Member Typedef Documentation

typedef Interval<C> int_t

Definition at line 25 of file fatarcs.hpp.

typedef Seq< Interval<C> > seqint_t

Definition at line 26 of file fatarcs.hpp.

typedef std::vector<C> vec_t

Definition at line 27 of file fatarcs.hpp.


Constructor & Destructor Documentation

domain ( ) [inline]

Definition at line 34 of file fatarcs.hpp.

{ }; 
domain ( int  n) [inline]

Definition at line 35 of file fatarcs.hpp.

{ int_t unit( C(0),C(1) ); for(int i = 0; i < n; i++){I<<unit;}; }; 
domain ( int_t  intxy) [inline]

Definition at line 36 of file fatarcs.hpp.

{ I<<intxy<<intxy; };
domain ( int_t  intx,
int_t  inty 
) [inline]

Definition at line 37 of file fatarcs.hpp.

{ I<<intx<<inty; };

Member Function Documentation

vec_t center ( ) [inline]

Definition at line 68 of file fatarcs.hpp.

    { vec_t v(I.size());
      for(unsigned i = 0; i < I.size(); i++){
          v[i]= I[i].center();};
      return v;
    };
Seq<C> delta ( ) [inline]

Definition at line 76 of file fatarcs.hpp.

Referenced by minmax_box().

    {Seq<C> d; 
      for(unsigned i = 0; i < I.size(); i++){
          d<<I[i].size();}
      return(d);
    };
C diam ( ) [inline]

Definition at line 47 of file fatarcs.hpp.

Referenced by solver_mv_fatarcs< C >::solver().

            {
      C d=C(0); 
      for(unsigned i = 0; i < I.size(); i++){
          d +=I[i].size()*I[i].size();}
      return(sqrt(d));
    }
C dim ( ) [inline]

Definition at line 40 of file fatarcs.hpp.

Referenced by solver_mv_fatarcs< C >::solver().

           {
      int d=0; 
      for(unsigned i = 0; i < I.size(); i++){d++;}
      return(d);
    }
vec_t llc ( ) [inline]

Definition at line 54 of file fatarcs.hpp.

    {vec_t v(I.size());
      for(unsigned i = 0; i < I.size(); i++){
          v[i]= I[i].m;};
      return v;
    };
void print ( int  digits) [inline]

Definition at line 83 of file fatarcs.hpp.

    { std::cout.precision(digits);
      std::cout<<"["<< TODOUBLE(I[0].m)<<", "<< TODOUBLE(I[0].M)<<"]x["<< TODOUBLE(I[1].m)<<", "<< TODOUBLE(I[1].M)<<"],"<<std::endl;
      // std::cout << "box midpt: (" <<(llc()[0]+urc()[0])/C(2)<<","<<(llc()[1]+urc()[1])/C(2)<<")"<<std::endl;
      std::cout << "diam: " <<diam()<<std::endl;
    };
void split ( domain< C > *  ch) [inline]

Definition at line 91 of file fatarcs.hpp.

Referenced by solver_mv_fatarcs< C >::solver().

    { 
     
      C cx=I[0].center() ;
      C cy=I[1].center() ;
     
      Interval<C> Ixl(I[0].m , cx), Ixr(cx , I[0].M), Iyl(I[1].m , cy), Iyr(cy, I[1].M);

     
      ch[0]=domain(Ixl,Iyl);
      ch[1]=domain(Ixr,Iyl);
      ch[2]=domain(Ixl,Iyr);
      ch[3]=domain(Ixr,Iyr);
    };/*subdivison of a box*/
vec_t urc ( ) [inline]

Definition at line 61 of file fatarcs.hpp.

    { vec_t v(I.size());
      for(unsigned i = 0; i < I.size(); i++){
          v[i]= I[i].M;};
      return v;
    };

Member Data Documentation

Definition at line 31 of file fatarcs.hpp.

Referenced by box_rep< C >::box_rep(), and minmax_box().


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