Skip to content

Commit

Permalink
stack for vstack
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Sep 16, 2023
1 parent 497b551 commit 6f06c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multi_multiply.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ to these three sets of data with the one single matrix multiply:

```{python}
# Stack the data vectors into columns in a 2D array.
Y = np.vstack((y_0, y_1, y_2)).T
Y = np.stack([y_0, y_1, y_2], axis=1)
Y
```

Expand Down

0 comments on commit 6f06c6c

Please sign in to comment.