Hi, I've been struggling to find an elegant way to shift each row i of a matrix M by i to the right.
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 becomes 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 0 0 0 0 -(i.&#) M returns the vector, in this case, 0 _1 _2 Now I want to apply 0 _1 _2 over each row of M as an argument to |. to get something like 0 _1 _2 |. / M but obviously this doesn't work (I tried several combinations with the correct rank). I'm sure this is not hard to do, but I got stuck and would appreciate your help Best regards, Dimitri ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
