Error Messages/46190

Error Message

In an IntraTable cell at Va2[I=3,J=2], you can't use Self in this way. When you use Self in an intratable cell, you need to slice or subscript Self to a different cell of the table, so you don't create a cyclic dependency where the cell depends on itself.

Description

The above message occurs in the following IntraTable example:

IntraTable bad use of Self.png

The use of Self in this table creates a cyclic dependency. In order to obtain the value for cell [I=3, J=2], the expression there would need to know the value of that cell.

When you use Self in an IntraTable, it should appear as a subscript or slice expression to other cells in the table. For example, instead of the above Sum expression, Sum( Self[I=1], J) would be okay (but not Sum[Self[I=3],J)).

Another example that may seem legitimate, but also causes this error, is this one:

IntraTable with Transpose.png

Although in theory there is no cyclic dependency in this case since the cells containing the call Transpose refer only to cells in the opposite triangle, this creates the same problem due to the fact that Transpose in as array function that needs the full result of its first parameter in order to compute its result (even if cells of that full result is ignored). If you are trying this exact case, see Entry of a symmetric matrix.

See Also

Comments


You are not allowed to post comments.