www.digitalmars.com         C & C++   DMDScript  
Archives

D Programming
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger
D.gnu
D

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics


digitalmars.D - Re: Array operation for computing the dot product?

Chad J:
 This reminds me of a discussion we had a year or more ago about offering
 abstract operators purely for the purpose of overloading.  We can use
 things like (+), (*), (-), (&), and so on.  It'd probably be fine to use
 one for dot product.

This looks acceptable as dot product: x (*) y but to me it doesn't look that much better than the simple: x.dot(y) Bye, bearophile
Feb 04 2010