Array operation for computing the dot product?

Michiel Helvensteijn m.helvensteijn.remove at gmail.com
Wed Feb 3 12:19:57 PST 2010


bearophile wrote:

>> Indeed. The difficult question is, what would the syntax be?
> 
> What about the simper:
> x.dot(y)

I don't like symmetric operations with an asymmetric syntax.

Better:      dot(x, y)
Even better: dot_product(x, y)
Funner:      sum(x .* y)

-- 
Michiel Helvensteijn




More information about the Digitalmars-d mailing list