On 5 Jan 2007 at 12:25, Michael Berry said:

> The quick and helpful answers I get from this list encourage me to ask
> more questions. I hope that is OK.
> 
> In my mental model of how things work, I imagine a J array to be stored as
> a fixed size header (or a header of size that is a function of the array
> rank) followed by the array contents. According to 7!:5, my floating point
> array seems to take up more space that that. This in on 32-bit Windows.
> 
> 
>    $rater_sig02
> 480189 19
>    8**/$rater_sig02
> 72988728
>    7!:5 <'rater_sig02'
> 134217728
>    (7!:5 <'rater_sig02')%*/$rater_sig02
> 14.7111
> 
> 
> In addition to just intellectual curiosity, my practical question is
> whether I need to think about anything beyond the number of elements and
> the type of my array when creating a mapped file to contain it.

Rounded-up space allocation

   2^. 8**/$rater_sig02
26.12117034
   2^. 7!:5 <'rater_sig02'
27


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to