org.lsmp.djep.vectorJep.function
Interface UnaryOperatorI

All Superinterfaces:
PostfixMathCommandI
All Known Implementing Classes:
MUMinus

public interface UnaryOperatorI
extends PostfixMathCommandI

A matrix enabled unary operator. This interface is primarilary used in the matrixJep package but is here for convienience.

Author:
Rich Morris Created on 02-Nov-2003

Method Summary
 Dimensions calcDim(Dimensions ldim)
          Find the dimensions of this operator when applied to arguments with given dimensions.
 MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs)
          Calculates the value of this operator for given input with results stored in res.
 
Methods inherited from interface org.nfunk.jep.function.PostfixMathCommandI
getNumberOfParameters, run, setCurNumberOfParameters
 

Method Detail

calcDim

public Dimensions calcDim(Dimensions ldim)
Find the dimensions of this operator when applied to arguments with given dimensions.


calcValue

public MatrixValueI calcValue(MatrixValueI res,
                              MatrixValueI lhs)
                       throws ParseException
Calculates the value of this operator for given input with results stored in res. res is returned. Using this method is slightly faster than the standard run method as it eliminates the construction of tempoary objects.

Throws:
ParseException


http://www.singularsys.com/jep Copyright © 2004 Singular Systems