Comparison of programming languages (array)
This comparison of programming languages (array) compares the features of array data structures or matrix processing for various computer programming languages. Syntax Array dimensions The following list contains syntax examples of how to determine the dimensions (index of the first element, the last element or the size in elements). Note particularly that some languages index from zero while others index from one. Indexing The following list contains syntax examples of how to access a single element of an array. Slicing The following list contains syntax examples of how a range of element of an array can be accessed. In the following table: – the index of the first element in the slice – the index of the last element in the slice – one more than the index of last element in the slice – the length of the slice (= end - first) – the number of array elements in each (default 1) Array system cross-reference list Vectorized array operations Some compiled languages such as Ada and Fortran, and some scripting languages such as IDL, MATLAB, and S-Lang, have native support for vectorized operations on arrays. For example, to perform an element by element sum of two arrays, and