### Create a diagonal matrix

```
import numpy as np
m = np.diag((2,5,7))
print(m)
```

[[2 0 0] [0 5 0] [0 0 7]]

```
import numpy as np
m = np.diag((2,5,7))
print(m)
```

[[2 0 0] [0 5 0] [0 0 7]]

- Dot product of two vectors
- Create a matrix from a vector
- Create a matrix of ones
- Create a vector of ones