summaryrefslogtreecommitdiff
path: root/doc/source/f2py/code
diff options
context:
space:
mode:
authorNamami Shanker <namami2011@gmail.com>2022-04-12 20:44:33 +0530
committerNamami Shanker <namami2011@gmail.com>2022-04-12 20:44:33 +0530
commit50ce363ca08d273cc9da081378067d15518d82ea (patch)
treeffe3373be5bde67e260db88dc859b69da8e4b09f /doc/source/f2py/code
parent65a701fd40d5ab3b772131daf45679d6ecf3d721 (diff)
downloadnumpy-50ce363ca08d273cc9da081378067d15518d82ea.tar.gz
DOC: Add F2PY test documentation
Diffstat (limited to 'doc/source/f2py/code')
-rw-r--r--doc/source/f2py/code/add-test.f10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/source/f2py/code/add-test.f b/doc/source/f2py/code/add-test.f
new file mode 100644
index 000000000..1d52e47bb
--- /dev/null
+++ b/doc/source/f2py/code/add-test.f
@@ -0,0 +1,10 @@
+ subroutine addb(k)
+ real(8), intent(inout) :: k(:)
+ k=k+1
+ endsubroutine
+
+ subroutine addc(w,k)
+ real(8), intent(in) :: w(:)
+ real(8), intent(out) :: k(size(w))
+ k=w+1
+ endsubroutine \ No newline at end of file