freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [pooma-dev] Grid<N> and Monotonicity


From: James Crotinger
Subject: RE: [pooma-dev] Grid<N> and Monotonicity
Date: Fri, 11 Jan 2002 13:03:46 -0700

I'm pretty sure that we want these to be monotonic. I don't know if we want to reorder (would you order to ascending or descending?) or just assert.

  Jim


> -----Original Message-----
> From: Jeffrey [mailto:address@hidden]
> Sent: Friday, January 11, 2002 1:01 PM
> To: address@hidden
> Subject: [pooma-dev] Grid<N> and Monotonicity
>
>
>
> The comments in src/Domain/Grid.h describe a Grid<N> as "any ascending
> or descending sequence."  When constructing a Grid<1> domain from an
> IndirectionList<1> il, il's entries are not reordered to be ascending
> or descending.  Will this cause any problems when using it?
>
> This program demonstrates the lack of monotonicity:
>
>     #include "Pooma/Pooma.h"
>     #include "Pooma/Domains.h"
>     #include <iostream>
>
>     int main(int argc, char *argv[])
>     {
>       Pooma::initialize(argc,argv);
>
>       IndirectionList<int> list(4);
>       list(0) = 10;
>       list(1) = 12;
>       list(2) = 11;
>       list(3) = 13;
>       Grid<1> g(list);
>       std::cout << g << std::endl;
>
>       Pooma::finalize();
>       return 0;
>     }
>
> Thanks for the information,
> Jeffrey D. Oldham
> address@hidden
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]