Salome HOME
projects
/
modules
/
yacs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge from V6_main_20120808 08Aug12
[modules/yacs.git]
/
doc
/
exemples
/
exemple8
/
client.py
1
import CORBA
2
3
orb = CORBA.ORB_init();
4
5
f = open('AlgLin.ior');
6
s = f.read();
7
f.close();
8
9
o = orb.string_to_object(s);
10
11
import Distant
12
o = o._narrow(Distant.AlgLin)
13
14
15
v1 = [ 1, 2, 3 ]
16
v2 = [ 3, 4, 5 ]
17
18
v3 = o.addvec(v1, v2)
19
print v3
20
21
print o.prdscl(v1, v3)