Error Messages/42532
< Error Messages
Revision as of 16:16, 3 December 2010 by Lchrisman (talk | contribs) (Created page with "= Error Message = In the call to MatrixMultiply, the same index (J) is specified for both indexes of the second matrix. An array cannot be indexed twice by the same index....")
Error Message
In the call to MatrixMultiply, the same index (J) is specified for both indexes of the second matrix. An array cannot be indexed twice by the same index. If you desire to specify a vector, then omit one of the index parameters.
Cause
A call such as:
MatrixMultiply(A,I,J,B,J,J)
Since the same index is specified twice, the implication is that B is indexed twice by J -- that it is both the row and column index. The rules of Analytica's intelligent arrays preclude an array being indexed twice by the same index, so this doesn't make sense.
Remedy
If you intended B to be treated as a vector, then the syntax would just omit the last index parameter:
MatrixMultiply(A,I,J,B,J)
See Also
Comments
Enable comment auto-refresher