Array operation for computing the dot product?

Trass3r un at known.com
Fri Feb 5 06:36:13 PST 2010


>>> What about the simper:
>>> x.dot(y)
>>>
>>  x.dot(y) and dot(x,y) are already implementable without language  
>> change.
>
> As is std.numeric.dotProduct(x, y) without language _or_ library change  
> :o).
>

That's why I wondered if it could be reasonably included (without  
introducing a ton of new stuff to the language).

so it should be usable like x.dotProduct(y), right?
sounds fine for me.

Unfortunately I can't even try to implement it cause my Core 2 is slightly  
too old ;)
Was introduced with Penryn architecture.



More information about the Digitalmars-d mailing list