Am I doing something wrong?

   require'jmf'
   unmapall_jmf_''

   D =: <"0
   D p=.12.34(0"0)} i.3 4
+-----+-+--+--+
|12.34|1|2 |3 |
+-----+-+--+--+
|4    |5|6 |7 |
+-----+-+--+--+
|8    |9|10|11|
+-----+-+--+--+
    'test.x' (1!:2<)~ 3!:1 p
   D 3!:2 [1!:1<'test.x'
+-----+-+--+--+
|12.34|1|2 |3 |
+-----+-+--+--+
|4    |5|6 |7 |
+-----+-+--+--+
|8    |9|10|11|
+-----+-+--+--+
   ((3!:0 p);}.$p) map_jmf_'data';'test.x'
   D data
+-----------+------------+------------+-----+
|1.6976e_313|4.24399e_314|8.48798e_314|12.34|
+-----------+------------+------------+-----+
|1          |2           |3           |4    |
+-----------+------------+------------+-----+
|5          |6           |7           |8    |
+-----------+------------+------------+-----+
   D data =: p a:}data
+-----+-+--+--+
|12.34|1|2 |3 |
+-----+-+--+--+
|4    |5|6 |7 |
+-----+-+--+--+
|8    |9|10|11|
+-----+-+--+--+
   unmapall_jmf_''
0
   ((3!:0 p);}.$p) map_jmf_'data';'test.x'
   D data
+-----+-+--+--+
|12.34|1|2 |3 |
+-----+-+--+--+
|4    |5|6 |7 |
+-----+-+--+--+
|8    |9|10|11|
+-----+-+--+--+
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to