I want to know how can I replace a part of a big matrix with another small matrix by a non-sequence order of row & columns. I mean
`
a=np.zeros([15,15])
B=np.ones([5,5])
ind1=[0,1,2,3,4]
ind2=[0,5,8,7,12]
#Now I want to replace like this
a[ind1,ind1]=a[ind1,ind1]+B
#and
a[ind2,ind2]=a[ind2,ind2]+B
`
It can be done very easily in Matlab, but I do not know why, in python, indexing of columns does not work with a list of numbers?
Thank you in advance