Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

array

This object is an array that can be used (by name) within PD expressions or a sum's arrayName. When used by name within an expression, it looks like a function. The dimensions of the array are implied by the underlying JSON file that is being referred to.

Example:

  {
    "array": {
      "name": "cover_array",
      "file": "array_cover.json",
      "ldimFields": [
        "req",
        "wu",
        "wo"
      ]
    }
  }

The above array used in an expression...

EQP(sum_shifts, cover_array(t, s, req), cover_array(t, s, wu), cover_array(t, s, wo))

...or as the array for a sum...

{
    "sumIter": "iterArray",
    "arrayName": "cover_array",
    "iterFields": [
        "r1",
        "w2",
        "w3"
      ]
}

Fields:

  • name: The name to define for this array that is used within expressions.
  • file: The external JSON file that contains the matrix data.
  • ldimFields: This names the last dimension indeces for representation of a "record". As shown above by the use of the cover_array in the EQP expression function, the last dimension index is referred to by the names given. In other words, req would be 0, wu, 1, and wo 2.

Note that iterFields is used when iterating over the array to name fields, not ldimFields. This is to allow for multiple nestedsum's to iterate over potentially the same array.