next up previous contents
Next: gather Up: Tensor operations Previous: outer product   Contents

index

\includegraphics[height=10mm]{images/index}% WIDTH=48 HEIGHT=45

The operator can be placed on the canvas in two ways:

Returns the index within the hypecube where the input is true (ie $>0.5$% WIDTH=74 HEIGHT=24 ). For example, where

\begin{eqnarray*}
\iota(3,3) & = & \left(\begin{array}{ccc}
0 & 3 & 6\\
1 & 4 &...
...& 3 & nan\\
1 & 4 & nan\\
2 & nan & nan
\end{array}\right),\\
\end{eqnarray*}% WIDTH=610 HEIGHT=253

Note that the output array has the same shape as the input, with unused values padded with NANs (missing value).

Dimension and argument parameters are unused.