org.lsmp.djep.jama
Class Rank
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.lsmp.djep.jama.Rank
- All Implemented Interfaces:
- UnaryOperatorI, PostfixMathCommandI
public class Rank
- extends PostfixMathCommand
- implements UnaryOperatorI
Find the rank of a matrix.
Serves a wrapper around the Jama linear algebra function.
- Author:
- Rich Morris
Created on 15-Feb-2005
- See Also:
- http://math.nist.gov/javanumerics/jama/
|
Constructor Summary |
Rank()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rank
public Rank()
run
public void run(Stack s)
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 PostfixMathCommand
- Throws:
ParseException
calcDim
public Dimensions calcDim(Dimensions ldim)
- Description copied from interface:
UnaryOperatorI
- Find the dimensions of this operator when applied to arguments with given dimensions.
- Specified by:
calcDim in interface UnaryOperatorI
calcValue
public MatrixValueI calcValue(MatrixValueI res,
MatrixValueI lhs)
throws ParseException
- Description copied from interface:
UnaryOperatorI
- 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.
- Specified by:
calcValue in interface UnaryOperatorI
- Throws:
ParseException
Copyright © 2014. All rights reserved.