?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
>>> import pytest
>>> import f2pytest
>>> import pyforttest
>>> print f2pytest.foo.__doc__
foo - Function signature:
a = foo(a)
Required arguments:
a : input rank-2 array('f') with bounds (m,n)
Return objects:
a : rank-2 array('f') with bounds (m,n)
>>> print pyforttest.foo.__doc__
foo(a)
>>> pytest.foo([[1,2],[3,4]])
array([[12, 14],
[24, 26]])
>>> f2pytest.foo([[1,2],[3,4]]) # F2PY can handle arbitrary input sequences
array([[ 12., 14.],
[ 24., 26.]],'f')
>>> pyforttest.foo([[1,2],[3,4]])
Traceback (most recent call last):
File "", line 1, in ?
pyforttest.error: foo, argument A: Argument intent(inout) must be an array.
>>> import Numeric
>>> a=Numeric.array([[1,2],[3,4]],'f')
>>> f2pytest.foo(a)
array([[ 12., 14.],
[ 24., 26.]],'f')
>>> a # F2PY makes a copy when input array is not Fortran contiguous
array([[ 1., 2.],
[ 3., 4.]],'f')
>>> a=Numeric.transpose(Numeric.array([[1,3],[2,4]],'f'))
>>> a
array([[ 1., 2.],
[ 3., 4.]],'f')
>>> f2pytest.foo(a)
array([[ 12., 14.],
[ 24., 26.]],'f')
>>> a # F2PY passes Fortran contiguous input array directly to Fortran
array([[ 12., 14.],
[ 24., 26.]],'f')
# See intent(copy), intent(overwrite), intent(inplace), intent(inout)
# attributes documentation to enhance the above behavior.
>>> a=Numeric.array([[1,2],[3,4]],'f')
>>> pyforttest.foo(a)
>>> a # Huh? Pyfort 8.5 gives wrong results..
array([[ 12., 23.],
[ 15., 26.]],'f')