Mercurial > hg > octave-nkf
diff src/DLD-FUNCTIONS/dot.cc @ 9876:21d81d06b221
cache-aligned loop for rowwise dot
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 26 Nov 2009 21:06:21 +0100 |
parents | 90bc0cc4518f |
children | d0ce5e973937 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/dot.cc +++ b/src/DLD-FUNCTIONS/dot.cc @@ -111,8 +111,9 @@ given, calculate the dot products along this dimension.\n\ \n\ This is equivalent to doing @code{sum (conj (@var{X}) .* @var{Y}, @var{dim})},\n\ -but avoids forming a temporary array and uses the BLAS xDOT functions,\n\ -usually resulting in increased accuracy of the computation.\n\ +but avoids forming a temporary array and is faster.\n\ +When @var{X} and @var{Y} are column vectors, the result is equivalent to\n\ +@code{ @var{X}'*@var{Y} }.\n\ @end deftypefn") { octave_value retval;