org.lsmp.djep.matrixJep.function
Class MList

java.lang.Object
  extended byorg.nfunk.jep.function.PostfixMathCommand
      extended byorg.nfunk.jep.function.List
          extended byorg.lsmp.djep.vectorJep.function.VList
              extended byorg.lsmp.djep.matrixJep.function.MList
All Implemented Interfaces:
NaryOperatorI, PostfixMathCommandI, PrintVisitor.PrintRulesI

public class MList
extends VList
implements PrintVisitor.PrintRulesI, NaryOperatorI

A enhanced version of list, allows matricies and tensors.

Author:
Rich Morris Created on 27-Nov-2003

Field Summary
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
MList()
           
 
Method Summary
 void append(Node node, PrintVisitor pv)
          Used to print the TensorNode with all its children.
protected  void bufferAppend(MatrixNodeI node, PrintVisitor pv, int currank)
          recursive procedure to print the tensor with lots of brackets.
 MatrixValueI calcValue(MatrixValueI res, MatrixValueI[] inputs)
          Calculates the value of this operator for given input with results stored in res.
 
Methods inherited from class org.lsmp.djep.vectorJep.function.VList
calcDim, run
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
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.lsmp.djep.vectorJep.function.NaryOperatorI
calcDim
 
Methods inherited from interface org.nfunk.jep.function.PostfixMathCommandI
getNumberOfParameters, run, setCurNumberOfParameters
 

Constructor Detail

MList

public MList()
Method Detail

calcValue

public MatrixValueI calcValue(MatrixValueI res,
                              MatrixValueI[] inputs)
                       throws ParseException
Description copied from interface: NaryOperatorI
Calculates the value of this operator for given input with results stored in res. res is returned.

Specified by:
calcValue in interface NaryOperatorI
Overrides:
calcValue in class VList
Throws:
ParseException

bufferAppend

protected void bufferAppend(MatrixNodeI node,
                            PrintVisitor pv,
                            int currank)
                     throws ParseException
recursive procedure to print the tensor with lots of brackets.

Throws:
ParseException

append

public void append(Node node,
                   PrintVisitor pv)
            throws ParseException
Used to print the TensorNode with all its children. Method implements PrintVisitor.PrintRulesI.

Specified by:
append in interface PrintVisitor.PrintRulesI
Throws:
ParseException


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