I have a matrix that looks like:
x=[[a,b,c,d,e,f],
[g,h,i,j,k,l],
[m,n,o,p,q,r]]
with a,b,c numbers. I am however only interested in the numbers at the lower left half and would like to creat a lower triangular matrix that goes by steps of two positions and thus looks like this:
x2=[[a,b,0,0,0,0],
[g,h,i,j,0,0],
[m,n,o,p,q,r]]
I could of course multiply x with:
x3=[[1,1,0,0,0,0],
[1,1,1,1,0,0],
[1,1,1,1,1,1]]
But is there a way to do this without manually creating x3?
And would it be possible to create a script where the steps are bigger then 2 zeros at a time?