Subarray Creation

ILArray<>s have the ability to derive subarrays from. Subarrays reflect parts of the original array. This is very often needed, when working with arrays.
This tutorial will show all possible ways of creation, give decision hints and explain the syntax in detail.

Hint for users familiar with Matlab:
Creating subarrays for ILNumerics.Net is very similar to the way of creating subarrays in Matlab. In fact the syntax presented here will look very familiar for Matlab users. Besides the actual syntax and the underlying implementation - subarray creation is full compatible to Matlab! This even includes functionality like
  • writing to ranges
  • automatic array reshaping on set access
  • automatic array reshaping in get access with last dimension specified as ":"
  • partial removal of dimensions by assigning null (known as : '... = [ ]')
  • sequential index read/ write access

Content

Subarrays are created as full subarrays or as ranged arrays. At the end of the article we will take a look at subarray creation from a performance point of view .

Valid CSS! Valid XHTML 1.0 Transitional