Artifact e8545534f280813df6ef66fe196bbc1b62823f84d5bb28b6235da2f03fce75aa:
- Executable file
r37/lisp/csl/html/r37_0220.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1693) [annotate] [blame] [check-ins using] [more...]
<A NAME=SHARE> <TITLE>SHARE</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>SHARE</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>declaration</B><P> <P> The <em>share</em> declaration allows access to its arguments by both algebraic and symbolic modes. <P> <H3> syntax: </H3> <P> <P> <em>share</em><identifier>{,<identifier>}* <P> <P> <P> <identifier> can be any valid REDUCE identifier. <P> <P> Programming in <A HREF=r37_0221.html>symbolic</A> as well as algebraic mode allows you a wider range of techniques than just algebraic mode alone. Expressions do not cross the boundary since they have different representations, unless the <em>share</em> declaration is used. For more information on using symbolic mode, see the <REDUCE User's Manual>, and the <Standard Lisp Report>. <P> <P> You should be aware that a previously-declared array is destroyed by the <em>share</em> declaration. Scalar variables retain their values. You can share a declared <A HREF=r37_0345.html>matrix</A> that has not yet been dimensioned so that it can be used by both modes. Values that are later put into the matrix are accessible from symbolic mode too, but not by the usual matrix reference mechanism. In symbolic mode, a matrix is stored as a list whose first element is <A HREF=r37_0343.html>MAT</A>, and whose next elements are the rows of the matri x stored as lists of the individual elements. Access in symbolic mode is by the operators <A HREF=r37_0046.html>first</A>, <A HREF=r37_0063.html>second</A>, <A HREF=r37_0066.html>third</A> and <A HREF=r37_0057.html>rest</A>. <P> <P> <P>