Skip to content

Commit

Permalink
Week 12 Mark edits
Browse files Browse the repository at this point in the history
  • Loading branch information
austinwn committed May 14, 2014
1 parent 9a9aec1 commit 36baa00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 12.5.1 The Inverse Power Method.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
" x = x / np.sqrt( np.transpose( x ) * x )\n",
" \n",
" # Notice we compute the Rayleigh quotient with matrix A, not Ainv. This is because\n",
" # the eigenvalue of A is an eigenvalue of Ainv\n",
" # the eigenvector of A is an eigenvector of Ainv\n",
" \n",
" print( 'Rayleigh quotient with vector x:', np.transpose( x ) * A * x / ( np.transpose( x ) * x ))\n",
" print( 'inner product of x with v3 :', np.transpose( x ) * V[ :, 3 ] )\n",
Expand Down
2 changes: 1 addition & 1 deletion 12.5.2 Shifting the Inverse Power Method.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
" x = x / np.sqrt( np.transpose( x ) * x )\n",
" \n",
" # Notice we compute the Rayleigh quotient with matrix A, not Ainv. This is because\n",
" # the eigenvalue of A is an eigenvalue of Ainv\n",
" # the eigenvector of A is an eigenvector of Ainv\n",
" \n",
" print( 'Rayleigh quotient with vector x:', np.transpose( x ) * A * x / ( np.transpose( x ) * x ))\n",
" print( 'inner product of x with v3 :', np.transpose( x ) * V[ :, 3 ] )\n",
Expand Down
4 changes: 2 additions & 2 deletions 12.5.3 The Rayleigh Quotient Iteration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@
" x = x / np.sqrt( np.transpose( x ) * x )\n",
" \n",
" # Notice we compute the Rayleigh quotient with matrix A, not Ainv. This is because\n",
" # the eigenvalue of A is an eigenvalue of Ainv\n",
" # the eigenvector of A is an eigenvector of Ainv\n",
" \n",
" mu = np.transpose( x ) * A * x / ( np.transpose( x ) * x )\n",
" mu = np.transpose( x ) * A * x\n",
" \n",
" # The above returns a 1 x 1 matrix. Let's set mu to the scalar\n",
" \n",
Expand Down

0 comments on commit 36baa00

Please sign in to comment.