Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderColor#556699
bgColor#eaf6ff

A vector is an array of numbers designed for high-performance computations. For a full list and details of functions and operators on vectors, see Vector Functions and Operators on Vectors.

Vector basics

Vectors serve as a way to perform computations with diverse data types. For instance, arrays of values can be extracted as vectors from data types such as fieldset, geopoints, netcdf, odb and table. Some of these types also allow their arrays to be set using vectors.

...

Z = f(X)

is equivalent to :

...

for

...

each

...

value

...

i

...


 

...

Zi

...

=

...

f(Xi)

...

Boolean operators such as > or <= produce 0 when the comparison fails, or 1 if it succeeds. Thus :

...

Z

...

=

...

X

...

>

...

0

gives a vector where all the values are either 1 or 0 depending on the corresponding values of the vector X being above 0 or not.

...