KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lsmp > djep > vectorJep > function > UnaryOperatorI


1 /* @author rich
2  * Created on 02-Nov-2003
3  *
4  * This code is covered by a Creative Commons
5  * Attribution, Non Commercial, Share Alike license
6  * <a HREF="http://creativecommons.org/licenses/by-nc-sa/1.0">License</a>
7  */

8 package org.lsmp.djep.vectorJep.function;
9 import org.lsmp.djep.vectorJep.*;
10 import org.lsmp.djep.vectorJep.values.*;
11 import org.nfunk.jep.ParseException;
12 import org.nfunk.jep.function.PostfixMathCommandI;
13 /**
14  * A matrix enabled unary operator.
15  * This interface is primarilary used in the matrixJep package
16  * but is here for convienience.
17  *
18  * @author Rich Morris
19  * Created on 02-Nov-2003
20  */

21 public interface UnaryOperatorI extends PostfixMathCommandI {
22     /** Find the dimensions of this operator when applied to arguments with given dimensions. */
23     public Dimensions calcDim(Dimensions ldim);
24     /** Calculates the value of this operator for given input with results stored in res.
25      * res is returned. Using this method is slightly faster
26      * than the standard run method as it eliminates the construction
27      * of tempoary objects.
28      */

29     public MatrixValueI calcValue(
30         MatrixValueI res,
31         MatrixValueI lhs) throws ParseException;
32 }
33
Popular Tags