Dan Bron wrote:
>I am not convinced it is possible to map a headerless boxed array
(i.e. whether   (32;...) map_jmf_ ...  can work) .

Using D =. ": displays my problem more clearly.
The byte representation of a simple floating point array is written to file.
No boxed data is involved.
It is values such as 1.6976e_313 that are wrong.

The phrase 0"0 should have been 0"_

    unmapall_jmf_''

   D =: ":
   D p=.12.34 98.76(0 8"_)} 10000+i.3 4
12.34 10001 10002 10003
10004 10005 10006 10007
98.76 10009 10010 10011
    'test.x' (1!:2<)~ 3!:1 p
   D 3!:2 [1!:1<'test.x'
12.34 10001 10002 10003
10004 10005 10006 10007
98.76 10009 10010 10011
   ((3!:0 p);}.$p) map_jmf_'data';'test.x'
   D data
1.6976e_313 4.24399e_314 8.48798e_314 12.34
      10001        10002        10003 10004
      10005        10006        10007 98.76
   D data =: p a:}data
12.34 10001 10002 10003
10004 10005 10006 10007
98.76 10009 10010 10011
   unmapall_jmf_''
0
   ((3!:0 p);}.$p) map_jmf_'data';'test.x'
   D data
12.34 10001 10002 10003
10004 10005 10006 10007
98.76 10009 10010 10011
   unmapall_jmf_''
0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to