[Jprogramming] How to interpret the space used by an array according to 7!:5

Devon McCormick devonmcc at gmail.com
Sat Jan 6 02:15:50 HKT 2007


However, I believe your memory-mapped file needs only the actual allocation
as
you can calculate it.
...
>
> On 1/5/07, Michael Berry <mjab at data-miners.com > wrote:
> >
> > 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.
> >
> > -Michael
> >
> > ===============
> > Michael J. A. Berry
> > Data Miners, Inc.
> > +1 617 742 4252
> >
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
>
> --
> Devon McCormick
> ^me^ at acm.
> org is my
> preferred e-mail




-- 
Devon McCormick
^me^ at acm.
org is my
preferred e-mail


More information about the Programming mailing list