So, I am working with a grid that has $N_x$, $N_y$ and $N_z$ voxels along the $x$, $y$ and $z$ axis respectively. There is this bijection that I apply in order to use the grid as one large vector and it is as such:
$$ \tag{1} \label{eq:param} l(i,j,k)=iâ (N_x)^2+jâ (N_y)^1+kâ (N_z)^0 $$
where $i,j,k$ are the indices of a voxel in the grid. It occurred to me that this is a very arbitrary way of having a grid turned into a vector, of converting 3D to 1D and I started looking into it a little bit more. I came across the concept of a space-filling curve and it seemed to me like those curves were better behaved and had interesting properties.
I wanted to work with them, it turns out that in order to do that I need a way to compute the values $l(i,j,k)$ for these curves. So my question is:
Is there a way to obtain a parameterization such as the one in Equation \ref{eq:param} for a space-filling curve?
P.S. If there is no general method, it is enough to discuss one particular example of a space-filling curve where that is possible.
P.P.S. In case there are no examples with a neat closed-form expression like Equation \ref{eq:param}, it is okay if there is a computational procedure to compute an $l(i,j,k)$, given the indices $i,j$ and $k$.


