examples/pl-functions/test-grid2D.cpp
author Dmitriy Morozov <dmitriy@mrzv.org>
Wed, 03 Feb 2010 11:20:40 -0800
branchdev
changeset 194 6c2a98fb8990
parent 183 0ca59b0ebc47
permissions -rw-r--r--
Removed a buggy assertion in LSVineard::transpose_vertices() (j points at the end() when moving the last simplex of the filtration)

#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;
}