May-02-2021, 04:09 PM
(This post was last modified: May-02-2021, 06:25 PM by Larz60+.
Edit Reason: Added inline code tags
)
Hi there!
I'm not quite sure how to code the following problem:
I have to multiply a given matrix A with herself that often, until the zero matrix results.
The matrix A is the following (using numpy as np):
Could it be the while loop? But I haven't succeeded yet.
I'm not quite sure how to code the following problem:
I have to multiply a given matrix A with herself that often, until the zero matrix results.
The matrix A is the following (using numpy as np):
A = np.array([[2,2,2,2,-4], [7,1,1,1,-5], [1,7,1,1,-5], [1,1,7,1,-5], [1,1,1,7,-5]])
Could it be the while loop? But I haven't succeeded yet.