Tutorial > Programming with PV-WAVE > Scalars, Arrays, and Structures
  

Scalars, Arrays, and Structures
A scalar is a single instance of one of the nine data types or a single composite structure. An array is a simple structure containing multiple elements of the same data type. Array elements are addressed with subscripts and subscript ranges and the index is zero-based. A structure is an aggregation of the basic data types, other structures, arrays, lists, and associative arrays.
PV-WAVE is array-oriented, that is, it handles an array as a single entity. As a result, you can perform mathematical operations on arrays in the same manner as on individual elements. For example, to multiply the variable a times 5, you enter “a*5”. PV-WAVE performs the operation with ease, whether the variable a is a scalar or an array.

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.