Skip to content

Commit

Permalink
Fix typo, update docstrings in cublas so that examples appear in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedov committed Sep 21, 2010
1 parent adea9f7 commit f3eb0a7
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions scikits/cuda/cublas.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def cublasIsamax(n, x, incx):
idx : int
Index of maximum magnitude element.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -218,8 +218,8 @@ def cublasIsamin(n, x, incx):
idx : int
Index of minimum magnitude element.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -262,8 +262,8 @@ def cublasSasum(n, x, incx):
incx : int
Storage spacing between elements of `x`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -315,8 +315,8 @@ def cublasSaxpy(n, alpha, x, incx, y, incy):
incy : int
Storage spacing between elements of `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -366,8 +366,8 @@ def cublasScopy(n, x, incx, y, incy):
incy : int
Storage spacing between elements of `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -419,8 +419,8 @@ def cublasSdot(n, x, incx, y, incy):
d : numpy.float32
Dot product of `x` and `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -467,8 +467,8 @@ def cublasSnrm2(n, x, incx):
nrm : numpy.float32
Euclidean norm of `x`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -670,8 +670,8 @@ def cublasSscal(n, alpha, x, incx):
incx : int
Storage spacing between elements of `x`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -715,8 +715,8 @@ def cublasSswap(n, x, incx, y, incy):
incy : int
Storage spacing between elements of `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -771,8 +771,8 @@ def cublasCaxpy(n, alpha, x, incx, y, incy):
incy : int
Storage spacing between elements of `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -935,8 +935,8 @@ def cublasCsscal(n, alpha, x, incx):
status = cublasGetError()
cublasCheckStatus(status)

_libcublas.cublasSswap.restype = None
_libcublas.cublasSswap.argtypes = [ctypes.c_int,
_libcublas.cublasCswap.restype = None
_libcublas.cublasCswap.argtypes = [ctypes.c_int,
ctypes.c_void_p,
ctypes.c_int,
ctypes.c_void_p,
Expand Down Expand Up @@ -1038,8 +1038,8 @@ def cublasIdamax(n, x, incx):
idx : int
Index of maximum magnitude element.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -1085,8 +1085,8 @@ def cublasIdamin(n, x, incx):
idx : int
Index of minimum magnitude element.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -1127,8 +1127,8 @@ def cublasDasum(n, x, incx):
incx : int
Storage spacing between elements of `x`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -1179,8 +1179,8 @@ def cublasDaxpy(n, alpha, x, incx, y, incy):
incy : int
Storage spacing between elements of `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -1229,8 +1229,8 @@ def cublasDcopy(n, x, incx, y, incy):
incy : int
Storage spacing between elements of `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -1281,8 +1281,8 @@ def cublasDdot(n, x, incx, y, incy):
d : numpy.float64
Dot product of `x` and `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -1329,8 +1329,8 @@ def cublasDnrm2(n, x, incx):
nrm : numpy.float64
Euclidean norm of `x`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -1498,8 +1498,8 @@ def cublasDscal(n, alpha, x, incx):
incx : int
Storage spacing between elements of `x`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -1542,8 +1542,8 @@ def cublasDswap(n, x, incx, y, incy):
incy : int
Storage spacing between elements of `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down Expand Up @@ -1668,8 +1668,8 @@ def cublasZaxpy(n, alpha, x, incx, y, incy):
incy : int
Storage spacing between elements of `y`.
Example
-------
Examples
--------
>>> import pycuda.autoinit
>>> import pycuda.gpuarray as gpuarray
>>> import numpy as np
Expand Down

0 comments on commit f3eb0a7

Please sign in to comment.