Error Messages/40115

< Error Messages
Revision as of 22:50, 13 January 2010 by Lchrisman (talk | contribs) (Created page with '= Error Text = :Result or intermediate value contains too many dimensions. An array may have a maximum of 16 dimensions. = Cause = Analytica enforces a limit of 16 dimensions…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Error Text

Result or intermediate value contains too many dimensions. An array may have a maximum of 16 dimensions.

Cause

Analytica enforces a limit of 16 dimensions on arrays. If you attempt to create a 17 dimensional array, you may encounter this error.

It is unusual to have arrays with >16 dimensions, since you usually exhaust available memory prior to this. Often this will occur when you have something unintended.

Sometimes when you are creating local indexes inside a loop, a mistake might cause you to end up with more than 16 dimensions, since these might be combined. For example:

For t:=Time Do (
   Index Level := ['L','M','H'] Do X_Base * Array(Level,[0.1,0.5,0.9])
)

This loop ends up creating a separate local index named Level at each iteration. Even though they are all named Level and have the same index values, Analytica considers them all to be distinct dimensions. When Time:=1..16, the result has 16 indexes named Level plus the Time index, thus exceeding the maximum number of dimensions.

Comments


You are not allowed to post comments.