Skip to content

Commit

Permalink
Removed trailing colon in reference
Browse files Browse the repository at this point in the history
Also prepended "see" to the references and fixed a triple space after
a period.
  • Loading branch information
omus committed Jun 25, 2016
1 parent aa6515a commit a7ebac4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/manual/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ convenient for data processing, but in other languages vectorization is also
often required for performance: if loops are slow, the "vectorized" version of a
function can call fast library code written in a low-level language. In Julia,
vectorized functions are *not* required for performance, and indeed it is often
beneficial to write your own loops (:ref:`man-performance-tips`:), but they can
still be convenient. Therefore, *any* Julia function ``f`` can be applied
beneficial to write your own loops (see :ref:`man-performance-tips`), but they
can still be convenient. Therefore, *any* Julia function ``f`` can be applied
elementwise to any array (or other collection) with the syntax ``f.(A)``.

Of course, you can omit the dot if you write a specialized "vector" method
Expand All @@ -634,7 +634,7 @@ which functions you want to vectorize.
More generally, ``f.(args...)`` is actually equivalent to
``broadcast(f, args...)``, which allows you to operate on multiple
arrays (even of different shapes), or a mix of arrays and scalars
(:ref:`man-broadcasting`:). For example, if you have ``f(x,y) = 3x + 4y``,
(see :ref:`man-broadcasting`). For example, if you have ``f(x,y) = 3x + 4y``,
then ``f.(pi,A)`` will return a new array consisting of ``f(pi,a)`` for each
``a`` in ``A``, and ``f.(vector1,vector2)`` will return a new vector
consisting of ``f(vector1[i],vector2[i])`` for each index ``i``
Expand Down

0 comments on commit a7ebac4

Please sign in to comment.