[BACK]Return to assert2.rr CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_python

Annotation of OpenXM/src/ox_python/assert2.rr, Revision 1.2

1.2     ! takayama    1: /* $OpenXM$ */
1.1       takayama    2: pari(nextprime,10)$
                      3: if (Pid == 0) {
                      4:   Pid=ox_launch(0,getenv("OpenXM_HOME")+"/src/ox_python/ox_python")$
                      5: }else{}$
                      6: ox_execute_string(Pid,"print('Hello')\n")$  // It is executed by PyRun_SimpleString()
                      7: ox_execute_string(Pid,"import numpy as np; A=np.array([[1,2],[3,4],[4,6]]); print(np.linalg.matrix_rank(A))\n")$
                      8: ox_cmo_rpc(Pid,"PyRun_String","str(np.linalg.matrix_rank(A))")$
                      9: //ox_cmo_rpc(Pid,"PyRun_String","import numpy as np; A=np.array([[1,2],[3,4],[4,6]]); print(np.linalg.matrix_rank(A))")$
                     10: printf("result = %a\n",ox_pop_cmo(Pid))$
                     11: sleep(10^10)$
                     12: end$
                     13:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>