From 6c704b821e827df7e0f369560a20d57181ea31f0 Mon Sep 17 00:00:00 2001 From: Christian Schilling <christian.schilling@rub.de> Date: Wed, 24 Nov 2010 17:24:04 +0100 Subject: [PATCH] Add a note about buffer layout of Images --- doc/source/runtime.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/source/runtime.rst b/doc/source/runtime.rst index 00c3ef29..8ca00bea 100644 --- a/doc/source/runtime.rst +++ b/doc/source/runtime.rst @@ -401,6 +401,12 @@ Images :class:`Image` is a subclass of :class:`MemoryObject`. + .. note:: + + If you want to load images from numpy arrays or read images back into arrays, be aware + that numpy arrays are stored row-major by default whereas OpenCL expects them to be stored in + column-major order. + .. versionadded:: 0.91 .. attribute:: info -- GitLab