Using References

Revision as of 16:37, 17 April 2007 by Lchrisman (talk | contribs)

Reference Operator: \A

The reference operator returns a reference to the value of A. A is an expression which is evaluated in the current context. A reference acts as an atomic element for array abstraction, and can be thought of as a pointer to a value (the value is often array-valued). with the simple syntax, \A, all dimensions of A are placed under the reference.

A reference displays in a result table as <<ref>>. You can view the value pointed to by the reference by double-clicking on the cell containing <<ref>>.

\[I,J]A

A list of zero or more indexes can be specified with taking the reference of a value. When indexes are specified, only those dimensions are swallowed by the reference. If there are other dimensions, the result returned will be an array of references. An empty list of references, \[]A, creates pointers to atomic values.

Dereference Operator: #R

When you have a reference (e.g., a pointer to a value), the dereference operator, #R, returns the value pointed to.

Examples

Comments


You are not allowed to post comments.