There was an error while loading. Please reload this page.
Would be great to have a boolean indexing scheme similar to matlab instead of having to specify indexes each time.
Something like:
n = NArray.random(8) n[n.eye(8).bool] = 3
Above code will set all the diagonals of array n to 3.
n