Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in profiling exercise #5

Closed
rushtongarth opened this issue Mar 29, 2018 · 2 comments
Closed

Typo in profiling exercise #5

rushtongarth opened this issue Mar 29, 2018 · 2 comments
Labels
typo Grammatical mistakes, formatting problems, etc.

Comments

@rushtongarth
Copy link

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

@shanemcq18 shanemcq18 added the typo Grammatical mistakes, formatting problems, etc. label Mar 29, 2018
@shanemcq18
Copy link
Member

We've corrected this in our development version and the change will be merged in soon. Thanks for pointing this one out.

@shanemcq18
Copy link
Member

Corrected in 52144d5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typo Grammatical mistakes, formatting problems, etc.
Projects
None yet
Development

No branches or pull requests

2 participants