There appears to be a typo in exercise 7 of Lab 08. In particular, there is a snippet of code which reads:
def matrix_power(A, n):
"""Compute A^n, the n-th power of the matrix A."""
product = A.copy()
temporary_array = np.empty_like(A[0])
m = A.shape[0]
for power in range(1, power):
#...
I think that the for loop should be changed to:
for power in range(1, n):
This can also be found on line 757 in the profiling.tex file
There appears to be a typo in exercise 7 of Lab 08. In particular, there is a snippet of code which reads:
I think that the for loop should be changed to:
This can also be found on line 757 in the
profiling.tex
file