Class Size

java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.lsmp.djep.vectorJep.function.Size
All Implemented Interfaces:
UnaryOperatorI, PostfixMathCommandI

public class Size extends PostfixMathCommand implements UnaryOperatorI
Returns the size of an Scaler, Vector or Matrix.
 size(7) -> 1
 size([1,2,3]) -> 3
 size([[1,2,3],[4,5,6]]) -> [2,3]
 size([[[1,2],[3,4],[5,6]],[[7,8],[9,10],[11,12]]]) -> [2,3,2]
 
Author:
Rich Morris Created on 13-Feb-2005