[pooma-dev] Grid<N> and Monotonicity
James Crotinger
jcrotinger at proximation.com
Fri Jan 11 20:03:46 UTC 2002
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:oldham at codesourcery.com]
> Sent: Friday, January 11, 2002 1:01 PM
> To: pooma-dev at pooma.codesourcery.com
> 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
> oldham at codesourcery.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20020111/cf9f47e6/attachment.html>
More information about the pooma-dev
mailing list