Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ivansavz
4 months ago
|
parent
|
context
|
favorite
| on:
In Defense of Matlab Code
I thought so too, but it doesn't seem to work since X has shape (3,).
This seems to work,
Z = Y @ X[:,np.newaxis]
thought it is arguably more complicated than calling the `.reshape(3,1)` method.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This seems to work,
thought it is arguably more complicated than calling the `.reshape(3,1)` method.