This is an old version, view current version.
5.4 Elementwise Functions
Elementwise functions apply a function to each element of a vector or matrix, returning a result of the same shape as the argument. There are many functions that are vectorized in addition to the ad hoc cases listed in this section; see section function vectorizationfor the general cases.