Extract an element from an array by accessing the array as a matrix.
This actor reads an array from the
<i>input</i> port and sends one of its elements to the <i>output</i>
port. The element that is extracted is determined by the
<i>x</i>, <i>y</i>, <i>xOffset</i> and <i>yOffset</i> parameters (or port).
It is required that
<pre>
0 <= <i>x</i> * <i>column</i> + <i>y</i> * <i>yOffset</i> < <i>N</i>
</pre>
where <i>N</i> is the length of the input array, or an exception will
be thrown by the fire() method.
Christopher Brooks
$Id: ArrayElementAsMatrix.java 70402 2014-10-23 00:52:20Z cxh $
Ptolemy II 6.1
Red (cxh)
Red (cxh)
The xOffset offset into the input array. This is an integer that
defaults to 1. If the port is left unconnected, then the
parameter value will be used.
The yOffset offset into the input array. This is an integer that
defaults to 1. If the port is left unconnected, then the
parameter value will be used.
The x index into the input array. This is an integer that
defaults to 0. If the port is left unconnected, then the
parameter value will be used.
The y index into the input array. This is an integer that
defaults to 0. If the port is left unconnected, then the
parameter value will be used.