On 6/17/08, June Kim <[EMAIL PROTECTED]> wrote: > Is there a generic and natural way of turning vectorized default > output to numbers in J?
If you want serialization, I would probably use 3!:1 (and 3!:2 to deserialize). However, if you know that your character vector properly represents a non-singuler and non-empty numeric array, you might use something like this: lines=: <@".;._2 shap=: [:|. [:*/\^:_1 [:+/\@(+ [EMAIL PROTECTED]) [:#/.~ [:>./\ [:#;.1 a:&~: unvec=: >@(shap $ -.&a:)@lines unvec v ... -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
