Update all rows in particular column in NdArray
serhii-vlasiuk opened this issue · comments
serhii-vlasiuk commented
I have nc::NdArray like:
[a b c d]
[a1 b1 c1 d1]
[a2 b2 c2 d2]
[a3 b3 c3 d3]
Is it possible to update all rows for first or other columns?
And get the following result:
[a_new b c d]
[a_new1 b1 c1 d1]
[a_new2 b2 c2 d2]
[a_new3 b3 c3 d3]
David Pilger commented
There are a lot of overloads of the NdArray
put()
method for inserting values. Specifically you'll want this one
arr.put(arr.rSlice(), 0, values);