| ▲ | Aerolfos a day ago | |
> To make `Z` a column vector, we would need something like `Z = (Y @ X)[:,np.newaxis]`. Doesn't just (Y @ X)[None] work? None adding an extra dimension works in practice but I don't know if you're "supposed" to do that | ||
| ▲ | ivansavz 21 hours ago | parent [-] | |
It seems `(Y @ X)[None]` produces a row vector of shape (1,3),
but `(Y @ X)[None].T` works as you described:
I don't know either RE supposed to or not, though I know np.newaxis is an alias for None. | ||