Small vector and matrix proposed for phobos2 now on github
Robert Jacques
sandford at jhu.edu
Mon Apr 26 10:25:26 PDT 2010
On Mon, 26 Apr 2010 13:16:02 -0300, bearophile <bearophileHUGS at lycos.com>
wrote:
> Robert Jacques:
>> - Element wise *, etc are important operators that you need to cleanly
>> support. Design-wise, since we can't do Matlab style operators, I prefer
>> */+- to be element wise,
>
> But keep in mind in D the built-in array ops always require the [].
>
> Bye,
> bearophile
Yes, but emulating that behavior is difficult. And array ops are still
buggy and broken to the degree of not being usable. In theory you
shouldn't need to define a small vector or matrix in D: fixed size arrays
are value types, array op support and free functions as member function
support. In practice, though, we still need it.
More information about the Digitalmars-d-announce
mailing list