aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/lib_std_vector_runme.py
blob: 1b196f550d8f7b625fa5419aa75f7a5406b1d2bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from lib_std_vector import *

iv = IntVector(4)
for i in range(0,4):
    iv[i] = i

x = average(iv)
y = average([1,2,3,4])

a = half([10,10.5,11,11.5])

dv = DoubleVector(10)
for i in range(0,10):
    dv[i] = i/2.0

halve_in_place(dv)