examples/grid/test-grid2D.cpp
author Dmitriy Morozov <dmitriy@mrzv.org>
Fri, 23 Oct 2009 09:36:55 -0700
branchdev
changeset 170 e8b6706cedfc
parent 5 ee9052408c40
permissions -rw-r--r--
Added link to CVXOPT in get-build-install documentation + progress bar to rips-pairwise-cohomology

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