diff --git a/README.md b/README.md index f760959..9a3397b 100644 --- a/README.md +++ b/README.md @@ -3,62 +3,9 @@ LAFF ###Linear Algebra - Foundations to Frontiers Learn the theory of linear algebra hand-in-hand with the practice of software library development. -**Week 1** +[Click here to preview all notebooks online.](http://nbviewer.ipython.org/github/ULAFF/notebooks/tree/master) -[1.5.2 Implementing a copy routine](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.2 Implementing a copy routine.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.2 Implementing a copy routine - Answer.ipynb) -[1.5.3 Implementing a routine that scales a vector](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.3 Implementing a routine that scales a vector.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.3 Implementing a routine that scales a vector - Answer.ipynb) -[1.5.4 Implementing an axpy routine](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.4 Implementing an axpy routine.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.4 Implementing an axpy routine - Answer.ipynb) -[1.5.5 Implementing a dot routine](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.5 Implementing a dot routine.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.5 Implementing a dot routine - Answer.ipynb) -[1.5.6 Implementing a routine to compute vector length](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.6 Implementing a routine to compute vector length.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.5.6 Implementing a routine to compute vector length - Answer.ipynb) -[1.6.3 Programming without indices (dot product)](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.6.3 Programming without indices (dot product).ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.6.3 Programming without indices \(dot product\) - Answer.ipynb) -[1.6.6 Programming without indices (axpy)](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.6.6 Programming without indices (axpy).ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/1.6.6 Programming without indices \(axpy\) - Answer.ipynb) - -**Week 2** - -[2.4.2.10 Practice with matrix-vector multiplication](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/2.4.2.10 Practice with matrix-vector multiplication.ipynb) - -**Week 3** - -[3.1.1 Timmy!.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.1.1%20Timmy%21.ipynb) -[3.2.1 Set to zero.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.1%20Set%20to%20zero.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.1%20Set%20to%20zero%20-%20Answer.ipynb) -[3.2.2 Set to identity.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.2%20Set%20to%20identity.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.2%20Set%20to%20identity%20-%20Answer.ipynb) -[3.2.3 Diagonal Matrices.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.3%20Diagonal%20Matrices.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.3%20Diagonal%20Matrices%20-%20Answer.ipynb) -[3.2.4 Triangularize.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.4%20Triangularize.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.4%20Triangularize%20-%20Answer.ipynb) -[3.2.5 Transpose.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.5%20Transpose.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.5%20Transpose%20-%20Answer.ipynb) -[3.2.6 Symmetrize.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.6%20Symmetrize.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.2.6%20Symmetrize%20-%20Answer.ipynb) -[3.3.1 Scale a Matrix.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.3.1%20Scale%20a%20Matrix.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.3.1%20Scale%20a%20Matrix%20-%20Answer.ipynb) -[3.4.1 Matrix vector multiply via dot products.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.4.1%20Matrix%20vector%20multiply%20via%20dot%20products.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.4.1%20Matrix%20vector%20multiply%20via%20dot%20products%20-%20Answer.ipynb) -[3.4.2 Matrix vector multiply via axpys.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.4.2%20Matrix%20vector%20multiply%20via%20axpys.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/3.4.2%20Matrix%20vector%20multiply%20via%20axpys%20-%20Answer.ipynb) - -**Week 4** - -[4.1.1 Predicting the Weather.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.1.1%20Predicting%20the%20Weather.ipynb) -[4.2.3 Alternative Matrix-Vector Multiplication Routines.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.2.3%20Alternative%20Matrix-Vector%20Multiplication%20Routines.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.2.3%20Alternative%20Matrix-Vector%20Multiplication%20Routines%20-%20Answer.ipynb) -[4.3.1 Matrix vector multiply with transpose matrix.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.1%20Matrix%20vector%20multiply%20with%20transpose%20matrix.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.1%20Matrix%20vector%20multiply%20with%20transpose%20matrix%20-%20Answer.ipynb) -[4.3.2.1 Upper Triangular Matrix Vector Multiply Routines.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.1%20Upper%20Triangular%20Matrix%20Vector%20Multiply%20Routines.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.1%20Upper%20Triangular%20Matrix%20Vector%20Multiply%20Routines%20-%20Answer.ipynb) -[4.3.2.3 Lower Triangular Matrix Vector Multiply Routines.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.3%20Lower%20Triangular%20Matrix%20Vector%20Multiply%20Routines.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.3%20Lower%20Triangular%20Matrix%20Vector%20Multiply%20Routines%20-%20Answer.ipynb) -[4.3.2.5 Upper Triangular Matrix Vector Multiply Routines (overwriting x).ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.5%20Upper%20Triangular%20Matrix%20Vector%20Multiply%20Routines%20%28overwriting%20x%29.ipynb) -[4.3.2.7 Lower Triangular Matrix Vector Multiply Routines (overwriting x).ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.7%20Lower%20Triangular%20Matrix%20Vector%20Multiply%20Routines%20%28overwriting%20x%29.ipynb) -[4.3.2.8 Transpose Lower Triangular Matrix Vector Multiply Routines.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.8%20Transpose%20Lower%20Triangular%20Matrix%20Vector%20Multiply%20Routines.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.8%20Transpose%20Lower%20Triangular%20Matrix%20Vector%20Multiply%20Routines%20-%20Answer.ipynb) -[4.3.2.8 Transpose Upper Triangular Matrix Vector Multiply Routines.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.8%20Transpose%20Upper%20Triangular%20Matrix%20Vector%20Multiply%20Routines.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.8%20Transpose%20Upper%20Triangular%20Matrix%20Vector%20Multiply%20Routines%20-%20Answer.ipynb) -[4.3.2.8 Triangular Upper Triangular Matrix Vector Multiply Routines.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.8%20Triangular%20Upper%20Triangular%20Matrix%20Vector%20Multiply%20Routines.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.8%20Triangular%20Upper%20Triangular%20Matrix%20Vector%20Multiply%20Routines%20-%20Answer.ipynb) -[4.3.2.9 Transpose Lower Triangular Matrix Vector Multiply Routines (overwriting x).ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.9%20Transpose%20Lower%20Triangular%20Matrix%20Vector%20Multiply%20Routines%20%28overwriting%20x%29.ipynb) -[4.3.2.9 Transpose Upper Triangular Matrix Vector Multiply Routines (overwriting x).ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.2.9%20Transpose%20Upper%20Triangular%20Matrix%20Vector%20Multiply%20Routines%20%28overwriting%20x%29.ipynb) -[4.3.3.1 Symmetric Matrix Vector Multiply Routines (stored in upper triangle).ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.3.1%20Symmetric%20Matrix%20Vector%20Multiply%20Routines%20%28stored%20in%20upper%20triangle%29.ipynb) -[4.3.3.3 Symmetric Matrix Vector Multiply Routines (stored in lower triangle).ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.3.3%20Symmetric%20Matrix%20Vector%20Multiply%20Routines%20%28stored%20in%20lower%20triangle%29.ipynb) -[4.3.3.4 Symmetric Matrix Vector Multiply Routines Challenge Question.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.3.4%20Symmetric%20Matrix%20Vector%20Multiply%20Routines%20Challenge%20Question.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.3.3.4%20Symmetric%20Matrix%20Vector%20Multiply%20Routines%20Challenge%20Question%20-%20Answer.ipynb) -[4.4.4.11 Practice with matrix-matrix multiplication.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/4.4.4.11%20Practice%20with%20matrix-matrix%20multiplication.ipynb) - -**Week 5** - -[5.3.1 Lots of loops.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.3.1%20Lots%20of%20loops.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.3.1%20Lots%20of%20loops%20-%20Answer.ipynb) -[5.3.2 Matrix-matrix multiplication by columns.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.3.2%20Matrix-matrix%20multiplication%20by%20columns.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.3.2%20Matrix-matrix%20multiplication%20by%20columns%20-%20Answer.ipynb) -[5.3.3 Matrix-matrix multiplication by rows.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.3.3%20Matrix-matrix%20multiplication%20by%20rows.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.3.3%20Matrix-matrix%20multiplication%20by%20rows%20-%20Answer.ipynb) -[5.3.4 Matrix-matrix multiplication via rank-1 updates.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.3.4%20Matrix-matrix%20multiplication%20via%20rank-1%20updates.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.3.4%20Matrix-matrix%20multiplication%20via%20rank-1%20updates%20-%20Answer.ipynb) -[5.5.1 Multiplying upper triangular matrices.ipynb](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.5.1%20Multiplying%20upper%20triangular%20matrices.ipynb) - [Answer](http://nbviewer.ipython.org/github/UT501x/LAFF/blob/master/5.5.1%20Multiplying%20upper%20triangular%20matrices%20-%20Answer.ipynb) - - - Attributions + Attributions     [ᔥ FLAME](http://www.cs.utexas.edu/~flame)     [ᔥ Spark](http://www.cs.utexas.edu/users/flame/Spark)     [↬ Probabilistic Programming and Bayesian Methods for Hackers](http://nbviewer.ipython.org/github/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/blob/master/Prologue/Prologue.ipynb) diff --git a/week01/01.5.2 Implementing a copy routine - Answer.ipynb b/week01/01.5.2 Implementing a copy routine - Answer.ipynb index d3c371e..c60cbeb 100644 --- a/week01/01.5.2 Implementing a copy routine - Answer.ipynb +++ b/week01/01.5.2 Implementing a copy routine - Answer.ipynb @@ -47,6 +47,7 @@ "input": [ "# This imports a package called \"numpy\" that will make working with matrices \n", "# simpler. We choose to call this package by the abbreviation np\n", + "import numpy as np", "\n", "# create two two-dimensional matrices of only one column each. \n", "# In the future we will also think of (column) \n", @@ -697,4 +698,4 @@ "metadata": {} } ] -} \ No newline at end of file +}