* supported by the derived class.
* @return A new Token containing the result.
*/
protected MatrixToken _subtractElementReverse(Token rightArgument)
throws IllegalActionException {
FixPoint scalar;
if (rightArgument instanceof FixMatrixToken) {
if (((FixMatrixToken) rightArgument).getRowCount() != 1
|| ((FixMatrixToken) rightArgument).getColumnCount() != 1) {
// Throw an exception.
return super._moduloElement(rightArgument);
}
scalar = ((FixMatrixToken) rightArgument).getElementAt(0, 0);
} else {
scalar = ((FixToken) rightArgument).fixValue();
}
FixPoint[][] result = fixMatrix();
for (int i = 0; i < _rowCount; i++) {
for (int j = 0; j < _columnCount; j++) {
result[i][j] = scalar.subtract(result[i][j]);
}
}
return new FixMatrixToken(result);
}