Skip to content
Snippets Groups Projects
Commit d1c9d4d8 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge branch 'master' of tuck.ath.cx:src/pyopencl

parents e44e3af1 72bdb8b6
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ Constructing :class:`Array` Instances
A synonym for the :class:`Array` constructor.
.. function:: zeros(context, queue, shape, dtype, allocator=None)
.. function:: zeros(context, queue, shape, dtype, order="C", allocator=None)
Same as :func:`empty`, but the :class:`Array` is zero-initialized before
being returned.
......
......@@ -520,7 +520,7 @@ def to_device(context, queue, ary, allocator=None, async=False):
empty = Array
def zeros(context, queue, shape, dtype, allocator=None):
def zeros(context, queue, shape, dtype, order="C", allocator=None):
"""Returns an array of the given shape and dtype filled with 0's."""
result = Array(context, shape, dtype,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment