org.lsmp.djep.vectorJep.function
Interface NaryOperatorI

All Superinterfaces:
PostfixMathCommandI
All Known Implementing Classes:
MIf, MList, VList

public interface NaryOperatorI
extends PostfixMathCommandI

A matrix enabled operator with N arguments. 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[] dims)
          Find the dimensions of this operator when applied to arguments with given dimensions.
 MatrixValueI calcValue(MatrixValueI res, MatrixValueI[] inputs)
          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[] dims)
                   throws ParseException
Find the dimensions of this operator when applied to arguments with given dimensions.

Throws:
ParseException

calcValue

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

Throws:
ParseException


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