diff options
Diffstat (limited to 'doc/source/f2py/scalar_session.dat')
-rw-r--r-- | doc/source/f2py/scalar_session.dat | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/f2py/scalar_session.dat b/doc/source/f2py/scalar_session.dat index 4fe8c03b1..8aff097c2 100644 --- a/doc/source/f2py/scalar_session.dat +++ b/doc/source/f2py/scalar_session.dat @@ -10,12 +10,12 @@ Required arguments: A= 2. B= 3. INCREMENT A AND B NEW A= 3. B= 4. ->>> import Numeric ->>> a=Numeric.array(2) # these are integer rank-0 arrays ->>> b=Numeric.array(3) +>>> import numpy +>>> a=numpy.array(2) # these are integer rank-0 arrays +>>> b=numpy.array(3) >>> scalar.foo(a,b) A= 2. B= 3. INCREMENT A AND B NEW A= 3. B= 4. >>> print a,b # note that only b is changed in situ -2 4
\ No newline at end of file +2 4 |