Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you're into shape rotations with numpy arrays check out einopt.

Also consider using "None" instead of "np.newaxis". To newcomers it's not as self-explanatory but it results in more readable code imho.



Or even better einx!


Wow, that looks like a whole tensor DSL for numpy (which itself is already an array DSL for Python).


Why is ein better than einopt?


thanks, will check out on einops more.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: