AnsweredAssumed Answered

AEL functions - Multiple Dimensions

Question asked by MIKAELGARCIA on Dec 18, 2003
Latest reply on Dec 18, 2003 by mfredrik
I have two fully working AEL functions;
defun functionA(mydata) and
defun functionB(mydata).
Both functions compute the same thing but in functionB mydata has an extra dimension (3 instead of 2). My goal now is to code a third function;
defun functionC(mydata), and this function should check the dimension of mydata using sweep_dim(mydata) and call either functionA or functionB depending on the result. However, so far I have not figured out how to do this. It seems that functionC fails in case I call functionA or functionB with improper dimension of mydata.  
Any clues?  :-/ Thanks.  

Outcomes