What I'm actually trying to do is create a type for spatial data:

typealias SpatialData Dict{Tuple{Integer,Integer,Integer},Real}

data = SpatialData([(i,j,k) => rand() for i=1:10, j=1:20, k=1:30])

However I need to do some checks on the size of the bounding box,
(10,20,30) in this case.

What I'm doing right now is loop over keys(data), but I would like to make
it a matrix and simply apply the builtin maximum() to the columns. Does
anyone suggest a better design? How to create such a type to support these
checks?

I also tried to play with sparse matrices, but I need 3D spatial data
representation.

-Júlio

Reply via email to