... | ... | @@ -224,12 +224,11 @@ In CS 417/517 Computational Methods... I require students to [implement a |
|
|
Matrix Solver... from
|
|
|
scratch](https://www.cs.odu.edu/~tkennedy/cs417/s21/Assts/matrixSolverExercise/).
|
|
|
NumPy provides implementations of matrix operations (e.g., multiplication).
|
|
|
|
|
|
Let us implement a quick NumPy based Matrix solver, for this [Discrete Case
|
|
|
Least Squares Approximation
|
|
|
Problem](https://www.cs.odu.edu/~tkennedy/cs417/s21/Public/approximationExample2/).
|
|
|
|
|
|
The code snippets in this section are extracted from [least_squares.py](https://git-community.cs.odu.edu/tkennedy/python-workshop/-/blob/master/NumPy/least_squares.py).
|
|
|
The code snippets in this section are extracted from
|
|
|
[least_squares.py](https://git-community.cs.odu.edu/tkennedy/python-workshop/-/blob/master/NumPy/least_squares.py).
|
|
|
|
|
|
The first line is the NumPy import. By convention the `numpy` module is given
|
|
|
the alias `np`.
|
... | ... | |