I planned to use "raw" +,-,/ and * for element-wise operations and <*> for
dot product. But yes, it's always nice to have some options like <@>, as
Michal suggests.
It could also be great to have ./ and .* for element-wize, like in
MathLab/Octave, but this syntactic sugar is not worth the
For my application (and for Decimal also) the same precedence as
traditional math would be the key success factor of the new operators.
Lower precedence (as now for custom operators) would be counter-intuitive,
cause hardly detectable errors in calculations
and lead to excessive use of
rators.
>
>
>
> *José Valimwww.plataformatec.com.br
> <http://www.plataformatec.com.br/>Founder and Director of R*
>
> On Thu, May 17, 2018 at 12:42 PM, Stas Versilov <stas.v...@gmail.com
> > wrote:
>
>> The problem is that other math operators used on matri
Hello!
I'am developing a matrix manipulation library for Elixir
(https://github.com/versilov/matrex)
and it would be really nice to have <*> operator, so that it could be
overriden for matrices dot product (or element-wise multiplication).
Is it possible to add it?
--
You received this