diff options
| author | melissawm <melissawm.github@gmail.com> | 2022-10-03 16:33:03 -0300 |
|---|---|---|
| committer | melissawm <melissawm.github@gmail.com> | 2022-10-03 16:33:03 -0300 |
| commit | 399e0e859ca7874bd068bc3667e86c8410ca7b53 (patch) | |
| tree | 52bd0d291bce979d359aaa70201b104d60965ae5 /doc/source/user/plot_gray_svd.py | |
| parent | 25ed0312cfbbddb60aa8f1491248f03f9eca5caa (diff) | |
| download | numpy-399e0e859ca7874bd068bc3667e86c8410ca7b53.tar.gz | |
DOC, MAINT: Remove unused files
These files should be deleted, as they were used on the SVD Tutorial which is now hosted at numpy/numpy-tutorials.
[skip azp][skip travis]
Diffstat (limited to 'doc/source/user/plot_gray_svd.py')
| -rw-r--r-- | doc/source/user/plot_gray_svd.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/doc/source/user/plot_gray_svd.py b/doc/source/user/plot_gray_svd.py deleted file mode 100644 index 95439939d..000000000 --- a/doc/source/user/plot_gray_svd.py +++ /dev/null @@ -1,16 +0,0 @@ -from scipy import misc -import matplotlib.pyplot as plt -import numpy as np -from numpy import linalg - -img = misc.face() -img_array = img / 255 -img_gray = img_array @ [0.2126, 0.7152, 0.0722] - -U, s, Vt = linalg.svd(img_gray) - -Sigma = np.zeros((768, 1024)) -for i in range(768): - Sigma[i, i] = s[i] - -plt.plot(s) |
