****PeterJohnNumPyV4
Now You Can Use NumPy 1.20.2 on CPython3.9.9.
****How To Use NumPy on PeterJohnNumPyV4;;
Go To
"TutorialSeason003/scripts/s007LSTMtrainingPlot.py".
Then
"Run Script".
****Not Yet implemented Features;;
Basically, you Can Use all Functions of numpy.ndarray.
**1; numpy.random;;
please use Python3 Standard "random" module instead of it.
1.1); numpy.random.randn();;
So we implemented pjRandN() function using NumPy and Python3 Standard "random" module.
Documents/TutorialSeason003/scripts/pjLStermMemory.py;pjRandN()
**2; numpy.linalg;;
2.1); numpy.linalg.norm();;
So we implemented pjNorm() function using NumPy instead of it.
Documents/TutorialSeason003/scripts/pjLStermMemory.py;pjNorm()
2.2); numpy.linalg.qr();;
So we implemented pjQR() function using NumPy instead of it.
Documents/TutorialSeason003/scripts/pjLStermMemory.py;pjQR();
**3; numpy.diag();;
Basically, you Can Use all Functions of numpy.ndarray,
so Please use numpy.ndarray.diagonal() instead of it.
**4; numpy.fft; Not Yet implemented.
**5; numpy.polynomial;; Not Yet implemented.
**6; numpy.ctypeslib;; Not Yet implemented.
****When you Use this App withOut NumPy;;
Using iPhones "Files.app", Delete the NumPys "__pycache__" folder below.
Documents/PeterJohnNumPyV4/usrLocal/lib/python3.9/site-packages/numpy/__pycache__
If there doesNot Exist the NumPys "__pycache__" folder,
when you touched "Edit Script",
this App Calls "Py_FinalizeEx()"
So you Can Enjoy Scripting Comfortably.
****the WorkAround against the Well-Known Bug of NumPy and Python3.9;;
NumPy and Python3.9 have a Well-Known Bug.
While NumPy has been imported, "Py_FinalizeEx()" doesNot Release memory.
So If you imported NumPy at the Second time, Python3 Crashes.
so we made a WorkAround against the Well-Known Bug of NumPy and Python3.9.
As the Specification of this App,
If there Exists the NumPys "__pycache__" folder,
Documents/PeterJohnNumPyV4/usrLocal/lib/python3.9/site-packages/numpy/__pycache__
Even if you touched "Edit Script",
this App doesNot call "Py_FinalizeEx()"
This is Not a Perfect Solution But you Can Enjoy NumPy withOut Python3 Crashing.
****1st Corinthians 10:31, GNT;
10:31 Well, whatever you do, whether you eat or drink, do it all for Gods glory.
Enjoy NumPy on PeterJohnNumPyV4.
Best Regards,
--Yasushi Yassun Obata