freepooma-devel
[Top][All Lists]
Advanced

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

Grid<N> and Monotonicity


From: Jeffrey
Subject: Grid<N> and Monotonicity
Date: Fri, 11 Jan 2002 12:01:13 -0800

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]