Closed Shushman closed 6 years ago
Do not merge - I need ensure the ordering of vertices is consistent with grid data.
Based on some simple tests, it seems the order of grid data is consistent with the order of vertices, i.e. the first dimension is the least significant bit. Can someone please confirm?
Can you add a test?
I have added a test_vertices_ordering()
method that compares the members and ordering of the result of vertices()
on a grid with a call to ind2x
for each valid vertex index.
I think the function comment needs to be updated?
Modified function comment to reflect change. Thanks for catching that @mykelk !
The function
vertices(::AbstractGrid
is added inGridInterpolations.jl
to allow the caller to obtain aVector
of sizelength(grid)
where each element is one of the vertices of the grid. The order of vertices is deterministically generated.E.g.