IBM Journal of Research and Development
IBM Skip to main content
  Home     Products & services     Support & downloads     My account  

  Select a country  
Journals Home  
  Systems Journal  
Journal of Research
and Development
  ·  Current Issue  
  ·  Recent Issues  
  ·  Papers in Progress  
  ·  Search/Index  
  ·  Orders  
  ·  Description  
  ·  Patents  
  ·  Recent publications  
  ·  Author's Guide  
  Staff  
  Contact Us  
  Related links:  
     IBM Research  

IBM Journal of Research and Development  
Volume 16, Number 1, Page 45 (1972)
Nontopical Issue
  Full article: arrowPDF   arrowCopyright info





   

Efficient Evaluation of Array Subscripts of Arrays

by A. Hassitt, L. E. Lyon
The APL language allows subscripted expressions such as A[I;J;K], where A is an array and I, J and K may be scalars, vectors or arrays of any size and shape. We describe an efficient method of evaluating these expressions. The method is quite general and yet it does recognize all the special cases in which multiple subscripts can be reduced to a simpler form. We show how the same mechanism can be used to evaluate other selection operations, such as transpose, and how selection operations may be combined.
Related Subjects: Compilers and interpreters; Programming, programs, and programming languages