... | ... | @@ -32,12 +32,12 @@ interests are Rust (at the time of writing) and Python (specifically the NumPy l |
|
|
|
|
|
## Referenced Courses & Materials
|
|
|
|
|
|
I may reference materials (e.g., lecture notes) and topics from various courses, including:
|
|
|
I may reference materials (e.g., lecture notes) and topics from various
|
|
|
courses, including:
|
|
|
|
|
|
- **CS 330 - Object Oriented Programming & Design**
|
|
|
- **CS 350 - Introduction to Software Engineering**
|
|
|
- **CS 417 - Computational Methods & Software**
|
|
|
- [Python non-linear solver discussion](https://www.cs.odu.edu/~tkennedy/cs417/f20/Public/solverDiscussion/)
|
|
|
|
|
|
I may also reference a couple examples from the previous:
|
|
|
|
... | ... | @@ -53,10 +53,11 @@ I may also reference a couple examples from the previous: |
|
|
|
|
|
> *NumPy is the fundamental package for scientific computing in Python. It is a
|
|
|
> Python library that provides a multidimensional array object, various derived
|
|
|
> objects (such as masked arrays and matrices), and an assortment of routines for
|
|
|
> fast operations on arrays, including mathematical, logical, shape manipulation,
|
|
|
> sorting, selecting, I/O, discrete Fourier transforms, basic linear algebra,
|
|
|
> basic statistical operations, random simulation and much more.*
|
|
|
> objects (such as masked arrays and matrices), and an assortment of routines
|
|
|
> for fast operations on arrays, including mathematical, logical, shape
|
|
|
> manipulation, sorting, selecting, I/O, discrete Fourier transforms, basic
|
|
|
> linear algebra, basic statistical operations, random simulation and much
|
|
|
> more.*
|
|
|
>
|
|
|
>
|
|
|
> Retrieved from <https://numpy.org/doc/stable/user/whatisnumpy.html>
|
... | ... | @@ -75,7 +76,7 @@ Mayer](https://www.amazon.com/Coffee-Break-NumPy-Science-Mastery/dp/1076932614) |
|
|
is an excellent read. In fact... I read the book during the 2020 Winter Break.
|
|
|
|
|
|
Let us start with a few short NumPy basics (e.g., arrays and broadcasting) then
|
|
|
build Matrix Solver!.
|
|
|
build a Matrix Solver!.
|
|
|
|
|
|
|
|
|
## Creating Arrays
|
... | ... | @@ -135,7 +136,7 @@ NumPy arrays can be... |
|
|
## Broadcasting
|
|
|
|
|
|
The next couple snippets are extracted from
|
|
|
[braodcasting.py](https://git-community.cs.odu.edu/tkennedy/python-workshop/-/blob/master/NumPy/broadcasting.py).
|
|
|
[broadcasting.py](https://git-community.cs.odu.edu/tkennedy/python-workshop/-/blob/master/NumPy/broadcasting.py).
|
|
|
|
|
|
In Python... each element of a list must be updated one at a time. If a list of
|
|
|
prices needed to be reduced by 10%, each one would need to be multiplied by 0.9
|
... | ... | |