I'm encountering something really strange. According to the documentation, IndexToCoordinates() should convert flat index to coordinates, for a given DSL_Dmatrix. When I try this:
Code: Select all
std::cout << "MI4 " << kam.GetNumberOfDimensions() << std::endl;
std::cout << "MI4 " << kam.GetSize() << std::endl;
kam.IndexToCoordinates(0, coords);
PrintCoords(coords);
What am I doing wrong?[/code]