From 75098d06c2feffc48c624d19f4b24f3e718099f8 Mon Sep 17 00:00:00 2001
From: arghdos <arghdos@gmail.com>
Date: Fri, 18 Nov 2016 13:30:54 -0500
Subject: [PATCH] add docu snippet about function calls

---
 doc/tutorial.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/doc/tutorial.rst b/doc/tutorial.rst
index 7d544ec47..a97405f77 100644
--- a/doc/tutorial.rst
+++ b/doc/tutorial.rst
@@ -1064,6 +1064,27 @@ More complicated programs
 
 SCOP
 
+External Functions
+~~~~~~~~~~~~~~~~~~
+
+Loopy currently supports calls to several commonly used mathematical functions,
+e.g. exp/log, min/max, sin/cos/tan, sinh/cosh, abs, etc.  They may be used in
+a loopy kernel by simply calling them, e.g.::
+
+    knl = lp.make_kernel(
+            "{ [i]: 0<=i<n }",
+            """
+            for i
+                a[i] = sqrt(i)
+            end
+            """)
+
+Additionally, all functions of one variable are currently recognized during
+code-generation however additional implementation may be required for custom
+functions.  The full lists of available functions may be found in a the
+:class:`TargetBase` implementation (e.g. :class:`CudaTarget`)
+
+
 Data-dependent control flow
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-- 
GitLab