I'm probably wrong, but when I first saw Harvey's request, I thought by amend 
he might be visualizing something like -

   (],%:) &.> <"0 ]i. 2 5
+-------------+-------------+-------------+-------------+---+
|0 0          |1 1          |2 1.414213562|3 1.732050808|4 2|
+-------------+-------------+-------------+-------------+---+
|5 2.236067977|6 2.449489743|7 2.645751311|8 2.828427125|9 3|
+-------------+-------------+-------------+-------------+---+

- joey


> On 2021May 15, at 02:16, 'Mike Day' via Programming 
> <programm...@jsoftware.com> wrote:
> 
> Sorry... another early send!  
> 
> You’ve already had some helpful, constructive, replies.  All I’ve got to add 
> is to wonder why you’re working with boxed data if your data are as regular 
> as your example suggests.  
> 
> If you really do have m rows of n boxed numeric values,  why not just open it 
> up with >  ?   You can do a lot of processing on the whole array.  Box it all 
> up again at the end if really necessary with <“0 (boxed scalars) or <“1 
> (boxed rows)
> 
> But perhaps I’ve misunderstood your requirements,
> 
> Cheers,
> 
> Mike
> 
> Sent from my iPad
> 
>> On 15 May 2021, at 10:08, Mike Day <mike_liz....@tiscali.co.uk> wrote:
>> 
>> 
>> 
>> Sent from my iPad
>> 
>>> On 15 May 2021, at 04:13, HH PackRat <hhpack...@gmail.com> wrote:
>>> 
>>> Hello again!
>>> 
>>> I'm thinking, for example, of a table of boxed data in its transposed
>>> horizontal position that has, say, 3 rows of, say, 1000 *boxed* values
>>> each.  My goal is to amend *all* of the boxed values to their square
>>> roots in one version of what I want to do and *all* of the original
>>> boxed values to their logarithmic equivalents (maybe multiplied by a
>>> constant, say, 100) in a second version .
>>> 
>>> Using what I know from past answers to my questions, I'm sure I could
>>> use "for" loops with repeated amends to accomplish this, but that
>>> seems to be working against J's efficiency in dealing with large
>>> quantities of data at once.
>>> 
>>> How can I do such a mass "amend" of entire tables in one fell swoop in
>>> J?  Please show EXPLICIT code rather than tacit code.
>>> 
>>> Thanks for any and all help!
>>> 
>>> Harvey
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

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

Reply via email to