summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bohrium/pyadd.py
blob: e70304be35baccb90f41e1c7470d48adc770c765 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python
import bohrium as bh

a = bh.array([1, 2, 3])
b = bh.array([3, 4, 5])
c = a + b

if bh.all(c == bh.array([4, 6, 8])):
    print("Success!")
else:
    print("Failure, values not as expected.")