Skip to content

Commit 36baa00

Browse files
author
austinwn
committed
Week 12 Mark edits
1 parent 9a9aec1 commit 36baa00

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

12.5.1 The Inverse Power Method.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
" x = x / np.sqrt( np.transpose( x ) * x )\n",
123123
" \n",
124124
" # Notice we compute the Rayleigh quotient with matrix A, not Ainv. This is because\n",
125-
" # the eigenvalue of A is an eigenvalue of Ainv\n",
125+
" # the eigenvector of A is an eigenvector of Ainv\n",
126126
" \n",
127127
" print( 'Rayleigh quotient with vector x:', np.transpose( x ) * A * x / ( np.transpose( x ) * x ))\n",
128128
" print( 'inner product of x with v3 :', np.transpose( x ) * V[ :, 3 ] )\n",

12.5.2 Shifting the Inverse Power Method.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
" x = x / np.sqrt( np.transpose( x ) * x )\n",
132132
" \n",
133133
" # Notice we compute the Rayleigh quotient with matrix A, not Ainv. This is because\n",
134-
" # the eigenvalue of A is an eigenvalue of Ainv\n",
134+
" # the eigenvector of A is an eigenvector of Ainv\n",
135135
" \n",
136136
" print( 'Rayleigh quotient with vector x:', np.transpose( x ) * A * x / ( np.transpose( x ) * x ))\n",
137137
" print( 'inner product of x with v3 :', np.transpose( x ) * V[ :, 3 ] )\n",

12.5.3 The Rayleigh Quotient Iteration.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@
132132
" x = x / np.sqrt( np.transpose( x ) * x )\n",
133133
" \n",
134134
" # Notice we compute the Rayleigh quotient with matrix A, not Ainv. This is because\n",
135-
" # the eigenvalue of A is an eigenvalue of Ainv\n",
135+
" # the eigenvector of A is an eigenvector of Ainv\n",
136136
" \n",
137-
" mu = np.transpose( x ) * A * x / ( np.transpose( x ) * x )\n",
137+
" mu = np.transpose( x ) * A * x\n",
138138
" \n",
139139
" # The above returns a 1 x 1 matrix. Let's set mu to the scalar\n",
140140
" \n",

0 commit comments

Comments
 (0)