examples/pl-functions/test-grid2D.cpp
author Aravindakshan Babu <akshan@stanford.edu>
Wed, 11 Aug 2010 17:07:09 -0700
branchdev
changeset 218 4f70a473e34b
parent 183 0ca59b0ebc47
permissions -rw-r--r--
Added a __iter__ method to the PersistenceDiagram class in python. Renamed the points iterator to the intervals iterator.

#include "grid2D.h"
#include <iostream>

int main()
{
	Grid2D grid(40,60);
	int i = 0;
	for (int x = 0; x < 40; ++x)
		for (int y = 0; y < 60; ++y)
		{
			grid(x,y) = i++;
		}

	std::cout << grid(20,30) << std::endl;
	std::cout << grid << std::endl;
}