Prism User's Guide - CSAIL People - MIT
Prism User's Guide - CSAIL People - MIT
Prism User's Guide - CSAIL People - MIT
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
ti -<br />
Chapter 5. Vamulizig Data 99<br />
From the command window: Issue the whatis command from the command<br />
line, specifying the name of the variable as its argument.<br />
5.5.1 What Is Displayed<br />
<strong>Prism</strong> -displays the information about the variable in the command window. If a<br />
CM Fortran array is CM-resident, that information is included. For example:<br />
whatin primes<br />
(CM based) logical primes (1:999)<br />
5.6 Modifying Data<br />
You can use the assign command to assign new values to a variable or an array.<br />
For example,<br />
assign z - 0<br />
assigns the value 0 to the variable x. You can put anything on the left-hand side<br />
of the statement that can go on the left-hand side in the language you are using -<br />
for example, a variable, a Fortran array section, or a C* left-indexed parallel<br />
variable.<br />
If the left-hand side is a CM Fortran array or array section, the right-hand side<br />
must be a conformable expression. For example, if arrayl and array2 are conformable,<br />
assign arrayl - array2 + 2<br />
adds 2 to each element of array2 and assigns the result to arrayl.<br />
Similarly, if the left-hand side is a C* parallel variable, the right-hand side must<br />
be of the same shape. For example, if pI and p2 are parallel variables of the same<br />
shape,<br />
assign p - p2<br />
assigns the value of each element of n2 to the corresvonding element of pD.<br />
ersion 1.2, March 1993<br />
Copyright 0 1993 Thinking Machines Corporation