From 2e45309d06e38ce043e549f1c0729cbcbe265eee Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 16 Jul 2013 12:35:34 -0400
Subject: [PATCH] Doc fixes

---
 doc/reference.rst     |  2 +-
 loopy/kernel/array.py | 15 ++++++++-------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/doc/reference.rst b/doc/reference.rst
index 9485c3b03..80b9f6659 100644
--- a/doc/reference.rst
+++ b/doc/reference.rst
@@ -183,7 +183,7 @@ These are usually key-value pairs. The following attributes are recognized:
 
   .. note::
 
-      Loopy will automatically add a depdencies of reading instructions
+      Loopy will automatically add depdencies of reading instructions
       on writing instructions *if and only if* there is exactly one writing
       instruction for the written variable (temporary or argument).
 
diff --git a/loopy/kernel/array.py b/loopy/kernel/array.py
index 7530c82e7..57e82ff02 100644
--- a/loopy/kernel/array.py
+++ b/loopy/kernel/array.py
@@ -386,15 +386,16 @@ class ArrayBase(Record):
             each with identical properties, are created
             for each name.
         :arg dtype: the :class:`numpy.dtype` of the array.
-            If this is *None*, :mod:`loopy` will try to continue
-            without knowing the type of this array.
+            If this is *None*, :mod:`loopy` will try to continue without
+            knowing the type of this array, where the idea is that precise
+            knowledge of the type will become available at invocation time.
+            :class:`loopy.CompiledKernel` (and thereby
+            :meth:`loopy.LoopKernel.__call__`) automatically add this type
+            information based on invocation arguments.
 
-            Note that some operations, such as :func:`loopy.add_padding`
-            will not work without the *dtype*.
+            Note that some transformations, such as :func:`loopy.add_padding`
+            cannot be performed without knowledge of the exact *dtype*.
 
-            :class:`loopy.CompiledKernel` will automatically compile a kernel
-            with the right dtype when called with a concrete array on a kernel
-            with argument whose *dtype* is *None*.
         :arg shape: May be one of the following:
 
             * *None*. In this case, no shape is intended to be specified,
-- 
GitLab