Data Structure Operations:
| Operation | Math | Python 3 | C++ | Score |
|---|---|---|---|---|
| Column vector instantiation and initialisation | \(\mathbf{c} = \begin{bmatrix} 1 \\ 2 \end{bmatrix}\) |
12 import numpy as np
c = np.array([[1, 2]]).T |
1 |
|
| Row vector instantiation and initialisation | \(\mathbf{r} = \begin{bmatrix} 1 & 2 \end{bmatrix}\) |
12 import numpy as np
r = np.array([[1,2]]) |
1 |