next up previous contents index
Next: numberOfColumns,numberOfRows Up: MatrixCategory Previous: dimensions   Contents   Index


map


\begin{usage}
map~f\\ map!~f\\ map(f)([$v_1,\dots,v_n$])\\
map(f)(A)\\ map!(f)(A)
\end{usage}

\begin{signatures}
map: (R $\to$\ R) $\to$\ \htmlref{\texttt{Vector}}{Vector} ...
...o$\ \% $\to$\ \%\\
map!: (R $\to$\ R) $\to$\ \% $\to$\ \%\\\end{signatures}

\begin{params}
{\em f} & R $\to$\ R & a map\\
{$v_i$} & R & Entries of a vector\\
{\em A} & \% & A matrix\\\end{params}

\begin{descr}
map(f)([$v_1,\dots,v_n$]) returns the square matrix
\begin{displa...
...rices, map!~does not make a copy of $A$\ but modifies it in place.\end{descr}


Manuel Bronstein 2000-12-13