mikera / core.matrix

core.matrix : Multi-dimensional array programming API for Clojure
Other
699 stars 113 forks source link

Add mutative counterparts in API #56

Closed si14 closed 11 years ago

si14 commented 11 years ago

There are a few protocols without mutative counterparts, namely:

Is it by design?

mikera commented 11 years ago

Not particularly by design.

If mutable versions of these functions are sensible / required then we should add them.

Note that some API functions can be implemented via alternative protocols, for example (negate! a) could be implemented the same as (scale! a -1)

mikera commented 11 years ago

Hi Dmitry, closing this as the original question is answered and there doesn't appear to be a specific action. If you want to create some patches to add these things then go for it!