Universal Functions11:01 with Craig Dennis
Universal functions are vectorized functions that can work on all values in an array at once. This is part of the magic of how things work so fast in NumPy. Let's explore the common ones.
- Automatic Vectorization (just immerse yourself, you don't need to understand it all)
- Write your own Ufunc
My Notes for New Way of Thinking
## Linear Algebra * There is a module for linear algebra, [linalg](https://docs.scipy.org/doc/numpy/reference/routines.linalg.html) * You can solve for a system of equations using the [solve function](https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.solve.html#numpy.linalg.solve) * You can create a square 2 dimensional matrix and a constant row vector and solve for each variable column * You can double check the answer using the inner product or [dot](https://docs.scipy.org/doc/numpy/reference/generated/numpy.dot.html#numpy.dot). * You can use the `@` to produce the dot product of two arrays.
You need to sign up for Treehouse in order to download course files.Sign up