Working through the excellent coursera machine-learning course, I found
myself using the row-wise (axis-wise) dot product in Octave, but found
there was no obvious equivalent in Julia.

In Octave/Matlab, one can call dot(a,b,2) to get the row-wise dot product
of two mxn matrices, returned as a new column vector of size mx1.

Even though Julia makes for loops faster, I like sum(dot(a,b,2)) for its
concision over the equivalent array comprehension or explicit for loop.

Hopefully I'm just missing an overload or alternate name?

Reply via email to