...
If a vector is holding data representing a rectangular structure, this form could be used to extract a 'sub-area'.
A vector can also be used to provide a set of indexes to another vector:
# copies values 20, 10, 30 into r
v = |10, 20, 30, 40|i = |2, 1, 3|
r = v[i]
Additionally, it is possible to assign a vector to an indexed position in another vector, for example: v[4] = |99,99,99|
. In this example, elements 4, 5 and 6 of v
will be replaced.
...
- no temporary files are generated
- computations are performed with 64-bit double-precision floating point numbers
- the vector variables are held in memory
- the
values()
function on a fieldset with many fields will yield a list of many vectors, which may require much memory - if this is the end of the computation, the vector variables should be freed, e.g.
Code Block language py a = 0 b = 0 spd = 0
...