Jun-13-2018, 09:41 AM
Hi everyone
I want to fill the lower part of a matrix with an input vector but i got problems
i get
but i want to get
do you haver any idea ?
Thank you !
I want to fill the lower part of a matrix with an input vector but i got problems
1 2 3 |
for i in range ( 1 , len (variable)): for j in range (i): tableau[i,j] = coef[j + i - 1 ] |
1 2 3 4 5 |
[[ 0. 0. 0. 0. 0. ] [ 1. 0. 0. 0. 0. ] [ 2. 3. 0. 0. 0. ] [ 3. 4. 5. 0. 0. ] [ 4. 5. 6. 7. 0. ]] |
1 2 3 4 5 |
[[ 0 0 0 0 0 ] [ 1 0 0 0 0 ] [ 2 3 0 0 0 ] [ 4 5 6 0 0 ] [ 7 8 9 10 0 ]] |
Thank you !