From 559bdc9c6ed9ac8f1d0725aa0aa6bfbcb9a18e91 Mon Sep 17 00:00:00 2001
From: "[6~" <inform@tiker.net>
Date: Tue, 5 Nov 2019 23:09:20 -0600
Subject: [PATCH] Add comment in cltypes about absence of bool (gh-304)

---
 doc/types.rst | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/types.rst b/doc/types.rst
index ccc96fdd..bc571394 100644
--- a/doc/types.rst
+++ b/doc/types.rst
@@ -21,6 +21,11 @@ see that a cl_long is 64 bit unsigned integer. Use the module as follows:
     >>> cl_long = cl.cltypes.long(1235) # maps to numpy.int64
     >>> floats = np.empty((128,), dtype=cl.cltypes.float) # array of numpy.float32
 
+.. note::
+
+    The OpenCL type ``bool`` does not have a correpsonding :mod:`numpy` type defined here,
+    because OpenCL does not specify the in-memory representation (or even the storage
+    size) for this type.
 
 Vector Types
 ------------
-- 
GitLab