Annotation of OpenXM/src/ox_python/assert2.rr, Revision 1.1
1.1 ! takayama 1: pari(nextprime,10)$
! 2: if (Pid == 0) {
! 3: Pid=ox_launch(0,getenv("OpenXM_HOME")+"/src/ox_python/ox_python")$
! 4: }else{}$
! 5: ox_execute_string(Pid,"print('Hello')\n")$ // It is executed by PyRun_SimpleString()
! 6: ox_execute_string(Pid,"import numpy as np; A=np.array([[1,2],[3,4],[4,6]]); print(np.linalg.matrix_rank(A))\n")$
! 7: ox_cmo_rpc(Pid,"PyRun_String","str(np.linalg.matrix_rank(A))")$
! 8: //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))")$
! 9: printf("result = %a\n",ox_pop_cmo(Pid))$
! 10: sleep(10^10)$
! 11: end$
! 12:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>