Linear Algebra & Advanced Patterns
Matrix operations, sorting/searching, and the tricks that come up in real code.
| Function | What it finds | Example |
|---|---|---|
| sorted copy |
|
| indices that would sort the array |
|
| distinct values + how often each appears |
|
| coordinates where a condition holds |
|
| insertion point to keep a sorted array sorted |
|
⚠️ Watch out: np.reshape and matrix transpose are NOT the same operation: a frequent source of silent bugs when porting math notation into code. Reshape relabels the flat buffer; transpose actually reorders it.
Now practice it
Exercises that use what this lesson just covered.