[Jprogramming] Mass amend
greg heil
gheil.j at gmail.com
Sat May 15 03:47:02 UTC 2021
sorry, escaped too soon;)
---
Harvey
sounds like you are reaching for each, eg
%: each 4;9;16
+-+-+-+
|2|3|4|
+-+-+-+
where this is
squareroot %:, under %. , boxing >, y
~greg heil
https//picsrp.github.io
--
from: HH PackRat <hhpackrat at gmail.com>
to: programming at jsoftware.com
date: May 14, 2021, 8:13 PM
subject: [Jprogramming] Mass amend
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
More information about the Programming
mailing list