I've written a function to create 16, 16 dimensional vectors and put them into an array, but when I append to the array, I end up with the previous entry being overwritten.
import math
empvec=[None]*16
vecset=[]
for g in range(16):
tempvec=empvec
for i in range(16):
f=g%8+1
if(bool((g)//8)):
tempvec[i]=i*f
else:
tempvec[i]=i/f
vecset.append(tempvec)
for g in range(16):
print(vecset[g])
I have also tried creating an empty, 16 entry array and then setting the values using
vecset[g]=tempvec
instead of appending, which also didn't work