On Mon, Jan 30, 2017 at 12:51 PM, sebb <seb...@gmail.com> wrote:

>
> > Also, there are a lot of basic array-wise operations that might benefit
> > from inclusion. To pick an example at random, element-by-element cosine.
> In
> > fact I already have a whole library of these (very simple) methods for up
> > to 3 dimensions which I would be happy to contribute.
>
> If every mathematical operation has its own function that quickly gets
> very unwieldy to test and maintain.
>

With C++ complex numbers (a library I have looked at quite a bit) there are
three categories of operators: complex operations, transcendental overloads
and operator overloads. Keeping with that model for arrays does not add up
to so many functions. The new class would be around half those, and half
the functions already in the current class (e.g. shuffle, range, norm) some
of which are already operator overloads.

Reply via email to