Row Type

Next: , Previous: Array, Index: Index

The row[] type, found in the allocation information, will allocate an array and acces it in a row major format. If you assign an array typed row to one typed col, then transposition will take place (to maintain identical index to value mappings.) If the array is partitioned over a number of processes, then this transposition will be distributed and involve communication.

Examples

var a:array[Int,10,10] :: allocated[row[] :: multiple[]];
((a#2)#4):=88;


In the example a is an array allocated in a row major fashion. The indices in the second line (the assignment) will access location 24.

Last Modified: August 2008