for i in range(1,n): for j in range(i-1): B[i] += sum + A[i][j]In the first iteration of the loops i equals 1 therefore "j in range(0)" is not executed and B[1] is never updated.
Matrix Calculation Problem
Matrix Calculation Problem
|
|
Messages In This Thread |
Matrix Calculation Problem - by arshad - Nov-04-2019, 09:07 AM
RE: Matrix Calculation Problem - by Gribouillis - Nov-04-2019, 09:20 AM
RE: Matrix Calculation Problem - by baquerik - Nov-04-2019, 09:45 AM
RE: Matrix Calculation Problem - by arshad - Nov-04-2019, 02:55 PM
RE: Matrix Calculation Problem - by baquerik - Nov-04-2019, 03:48 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Check if two matrix are equal and of not add the matrix to the list | quest | 3 | 884 |
Jul-10-2023, 02:41 AM Last Post: deanhystad |
|
Stock Return calculation problem | LFin | 10 | 2,204 |
Sep-26-2022, 04:28 PM Last Post: deanhystad |
|
How to multiply a matrix with herself, until the zero matrix results | peanutbutterandjelly | 3 | 3,405 |
May-03-2021, 06:30 AM Last Post: Gribouillis |
|
Dataframe mean calculation problem: do we have to loop? | sparkt | 1 | 2,195 |
Aug-28-2020, 02:41 PM Last Post: sparkt |
|
Problem in matrix | leemao | 1 | 2,186 |
Jun-27-2020, 12:48 PM Last Post: Yoriz |
|
Problem with simple 3D Vektor calculation | Pythocodras | 0 | 1,734 |
Dec-11-2019, 07:18 PM Last Post: Pythocodras |
|
Correlation Matrix Problem | Pmllz | 0 | 2,033 |
Feb-02-2019, 10:19 PM Last Post: Pmllz |
|
matrix from matrix python numpy array | shei7141 | 1 | 3,735 |
Jan-16-2017, 06:10 PM Last Post: micseydel |
Users browsing this thread: 2 Guest(s)