[Matrix-SIG] (no subject)
Travis Oliphant
Oliphant.Travis@mayo.edu
Tue, 7 Sep 1999 11:03:35 -0500 (CDT)
There is a function called array_set in the arrayfnsmodule of the gist
package that may help you accomplish your goal.
I have not used it much but here is the calling syntax.
array_set(vals1, indices, vals2)
it operates like
vals1 [indices] = vals2
It may only work with 1-D arrays (i.e. flattened arrays) though. I'm not
sure.
This is a common operation and it would be a nice addition to Numeric.
I've worked around it most of the time by changing the way I think about
assinging and using the where command with the logical operaters.
Travis