summaryrefslogtreecommitdiff
path: root/doc/source/f2py/code
diff options
context:
space:
mode:
authorNamami Shanker <namami2011@gmail.com>2022-06-21 14:13:29 +0530
committerNamami Shanker <namami2011@gmail.com>2022-06-23 18:47:56 +0530
commit6d8281ca6ab73c822489a1e0c4cdc20cfb3a1061 (patch)
treed3a314e9b562a15840bea3a23c9a0111d82c105f /doc/source/f2py/code
parentdf7ccc4034e04fd3fadaa33710c727589dc0d938 (diff)
downloadnumpy-6d8281ca6ab73c822489a1e0c4cdc20cfb3a1061.tar.gz
DOC: Add f2cmap flag doc
Diffstat (limited to 'doc/source/f2py/code')
-rw-r--r--doc/source/f2py/code/f2cmap_demo.f9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/source/f2py/code/f2cmap_demo.f b/doc/source/f2py/code/f2cmap_demo.f
new file mode 100644
index 000000000..3f0e12c76
--- /dev/null
+++ b/doc/source/f2py/code/f2cmap_demo.f
@@ -0,0 +1,9 @@
+ subroutine func1(n, x, res)
+ use, intrinsic :: iso_fortran_env, only: int64, real64
+ implicit none
+ integer(int64), intent(in) :: n
+ real(real64), intent(in) :: x(n)
+ real(real64), intent(out) :: res
+Cf2py intent(hide) :: n
+ res = sum(x)
+ end