I am tring to populate both matrix_of_ones and inner_matrix inside a for loop but the final matrix is not what i expect. I expect matrix_of_ones to be equal expected_for_loop_output after the for loop is finished executing but the for loop actually generates actual_for_loop_output below. Could someone please why this is so?
I expect matrix_of_ones to be equal expected_for_loop_output after the for loop is finished executing but the for loop actually generates actual_for_loop_output.