moble / quaternionic

Interpret numpy arrays as quaternionic arrays with numba acceleration
MIT License
84 stars 7 forks source link

`np.ones_like(q)` returns all 1s #12

Closed moble closed 3 years ago

moble commented 4 years ago

Presumably, we would prefer [1, 0, 0, 0]. Unfortunately, np.ones_like does not call the ufunc, so I'm not sure how to hook into this behavior.