Re: Multidimensional Packed Bit Array



the offset and multiplier for each dimension is simply the total size of the
lower order dimension.

so for an array a[3,3,3]

would be 27 bits big, a[x,y,z] -> BitArrayStore[x*9+y*3+z]

Colin =^.^=

just dont get it, should be 3*3*3=27,

x*9+y*3+z is what? new mathematics? what is x,y,z? 3*9+3*3+3 != 27

just dont get it *as always*

But u are probably correct...

//CY
.



Relevant Pages

  • Re: PHP-like Array/Hash creation in Ruby
    ... but the autogrowing is limited to the last dimension. ... i dont have constant size of elements that could be added in just one ... want to store them in a 3 dimensional array. ... I do like Ruby very much from the first looks ...
    (comp.lang.ruby)
  • Re: Question about cgi forms (slightly OT)
    ... > If you normalize the CGI input to a sane value (IE, make string zero ... > the order they are placed into the array then you can use array ... dont think I was clear enough ... through the fields, edit etc, but if I do a control F for instance, the ...
    (perl.beginners)
  • Re: bit vector
    ... > HI.first of all i am sorry on my very bad english(spelling and grammar) ... > but I dont understand this, so if you can help me i would appreciate ... We mark every number i from 2..MAXNUMBER-1 as potential prime number ... and can get up to 8*MAXNUMBER-1 with the same array". ...
    (comp.lang.c)
  • Re: look into control array for colission detection
    ... Im sort of new to vb6. ... > array to see if the fire-ball left the screen the unload it. ... > Still good to me that I dont leak mem. ...
    (microsoft.public.vb.controls)
  • Re: macro - delete row if cell contains string
    ... Here is a slightly more complex macro that I really need. ... I think it will probably have something to do with finding the cells ... all cells that contain the contents of that array. ... Unfortunately I dont have the programing language to do this. ...
    (microsoft.public.excel.programming)