home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / graphics / explorer / 149 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.graphics.explorer
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!odin!homebrew.asd.sgi.com!foulser
  3. From: foulser@homebrew.asd.sgi.com (David Foulser)
  4. Subject: Re: More information about the Shape language?
  5. Message-ID: <1992Aug17.184410.21264@odin.corp.sgi.com>
  6. Sender: news@odin.corp.sgi.com (Net News)
  7. Nntp-Posting-Host: homebrew.asd.sgi.com
  8. Reply-To: foulser@homebrew.asd.sgi.com (David Foulser)
  9. Organization: sgi
  10. References:  <1992Aug17.143209.14091@mnemosyne.cs.du.edu>
  11. Date: Mon, 17 Aug 1992 18:44:10 GMT
  12. Lines: 17
  13.  
  14. subshape( lo, hi, array ) = values;
  15.  
  16. is the best way to fill an array. Doing it with a double/triple loop will
  17. be very inefficient. You'll need to make sure that your left and right
  18. hand sides of the previous assignment statement are compatibly sized, 
  19. which you can do by trying
  20.  
  21. write(shape(values));
  22. write(shape(subshape( lo, hi, array )));
  23.  
  24. Dave
  25. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  26. David Foulser                    foulser@sgi.com 
  27. MS 7U-545
  28. Silicon Graphics, Inc               415/390-5338 
  29. 2011 N. Shoreline Blvd.             415/969-6412 FAX 
  30. Mountain View, CA 94039-7311 
  31.