Skip to content

Commit

Permalink
Doc/spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 11, 2015
1 parent 09e61e6 commit 247f5b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion pycuda/gpuarray.py
Expand Up @@ -775,6 +775,8 @@ def transpose(self, axes=None):
according to the values given.
:returns: :class:`GPUArray` A view of the array with its axes permuted.
.. versionadded:: 2015.2
"""

if axes is None:
Expand All @@ -792,6 +794,9 @@ def transpose(self, axes=None):

@property
def T(self): # noqa
"""
.. versionadded:: 2015.2
"""
return self.transpose()

# {{{ slicing
Expand Down Expand Up @@ -1286,12 +1291,17 @@ def transpose(a, axes=None):
according to the values given.
:returns: :class:`GPUArray` A view of the array with its axes permuted.
.. versionadded:: 2015.2
"""
return a.transpose(axes)


def reshape(a, shape):
"""Gives a new shape to an array without changing its data."""
"""Gives a new shape to an array without changing its data.
.. versionadded:: 2015.2
"""

return a.reshape(shape)

Expand Down
4 changes: 2 additions & 2 deletions test/test_gpuarray.py
@@ -1,6 +1,6 @@
from __future__ import absolute_import
from __future__ import print_function
#! /usr/bin/env python

from __future__ import absolute_import, print_function
import numpy as np
import numpy.linalg as la
import sys
Expand Down

0 comments on commit 247f5b0

Please sign in to comment.