A RavelDataCube is a Ravel that has a DataCube object.
var ravel=new Module.RavelDataCube
{
axis: "axis name",
slice: ["sliceLabel1",..."sliceLabeln"]
}
{
dimension: {
axis: string,
slice: string[]
} [],
data: number[]
}
Each dimension element describes an axis of the datacube, with the
slice array containing the slice labels. Each element of the
datacube is indexed by the combining the indices of the relevant
slices, in order given by the dimension array. data is an
array of (index,value) pairs, describing the data in a sparse format.
var f=function(idx,v) {var col=idx[0], row=idx[1];...}
where idx is an array of indices along the output handles (0-based),
and v is the output value at that location. This function will only be
called if a value exists at that location. The above example shows
decoding a rank 2 ravel, which is currently all that is supported.
Ravelation Pty Ldt