Difference between revisions of "Error Messages/40246"

(Created page with '= Error Text = In call to function My_sum, the first parameter, X, has more than one dimension. Since X is specified as ascending or descending, it must have only one dimensio…')
 
Line 8: Line 8:
  
 
You passed a multidimensional array as a parameter to a function that expects the parameter to be an ascending or descending array. You can only pass a one dimensional array to a function parameter that is expected to be ascending or descending.
 
You passed a multidimensional array as a parameter to a function that expects the parameter to be an ascending or descending array. You can only pass a one dimensional array to a function parameter that is expected to be ascending or descending.
 +
 +
Defining the function parameter to accept a one dimensional array and the index for the dimension would make the [[User-Defined_Functions|UDF]] easier to understand.
  
 
= Remedies =
 
= Remedies =
  
 
Pass a one dimensional array as the indicated parameter to the function.
 
Pass a one dimensional array as the indicated parameter to the function.

Revision as of 19:41, 1 February 2010

Error Text

In call to function My_sum, the first parameter, X, has more than one dimension. Since X is specified
as ascending or descending, it must have only one dimension. (Alternatively, consider rewriting
the function to specify parameter X with one dimension, e.g., "X : Ascending ArrayType[ j ]; j: Index"

Cause

You passed a multidimensional array as a parameter to a function that expects the parameter to be an ascending or descending array. You can only pass a one dimensional array to a function parameter that is expected to be ascending or descending.

Defining the function parameter to accept a one dimensional array and the index for the dimension would make the UDF easier to understand.

Remedies

Pass a one dimensional array as the indicated parameter to the function.

Comments


You are not allowed to post comments.