Subarray with with arbitrary index?

Aug. 17, 2001
1:30 a.m.
Hi, Is it possible to assign to a subarray with arbitrary index? Suppose I have three arrays a = arange(8) b = array([2, 3, 5]) c = arange(3)+100 I want a function f, such that calling f(a, b, c) would change a to [0 1 100 101 4 102 6 7] This would be useful in certain applications that would otherwise require sparse matrices. Huaiyu Zhu

8678
Age (days ago)
8692
Last active (days ago)
3 comments
3 participants
participants (3)
-
Huaiyu Zhu
-
John J. Lee
-
Paul F. Dubois