org.lsmp.djep.vectorJep.function
Class VList

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by org.nfunk.jep.function.List
          extended by org.lsmp.djep.vectorJep.function.VList
All Implemented Interfaces:
NaryOperatorI, PostfixMathCommandI
Direct Known Subclasses:
MList

public class VList
extends List
implements NaryOperatorI

A enhanced version of List, allows matrices and tensors. During evaluation this function converts lists of values into the appropriate

Author:
Rich Morris Created on 27-Nov-2003
See Also:
MatrixValueI type.

Field Summary
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
VList()
           
 
Method Summary
 Dimensions calcDim(Dimensions[] dims)
          Calculates the dimension of this node with given dimensions of children.
 MatrixValueI calcValue(MatrixValueI res, MatrixValueI[] inputs)
          Calculates the value of this node.
 void run(java.util.Stack inStack)
          Throws an exception because this method should never be called under normal circumstances.
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nfunk.jep.function.PostfixMathCommandI
checkNumberOfParameters, getNumberOfParameters, setCurNumberOfParameters
 

Constructor Detail

VList

public VList()
Method Detail

calcDim

public Dimensions calcDim(Dimensions[] dims)
                   throws ParseException
Calculates the dimension of this node with given dimensions of children.

Specified by:
calcDim in interface NaryOperatorI
Throws:
ParseException

calcValue

public MatrixValueI calcValue(MatrixValueI res,
                              MatrixValueI[] inputs)
                       throws ParseException
Calculates the value of this node.

Specified by:
calcValue in interface NaryOperatorI
Throws:
ParseException

run

public void run(java.util.Stack inStack)
         throws ParseException
Description copied from class: PostfixMathCommand
Throws an exception because this method should never be called under normal circumstances. Each function should use it's own run() method for evaluating the function. This includes popping off the parameters from the stack, and pushing the result back on the stack.

Specified by:
run in interface PostfixMathCommandI
Overrides:
run in class List
Throws:
ParseException


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