scikits.cuda.cublas.cublasDrotm

scikits.cuda.cublas.cublasDrotm(handle, n, x, incx, y, incy, sparam)[source]

Apply a double-precision real modified Givens rotation.

Applies the double-precision real modified Givens rotation matrix h to the 2 x n matrix [[x.T], [y.T]].

Parameters:

handle : int

CUBLAS context.

n : int

Number of elements in input vectors.

x : ctypes.c_void_p

Pointer to double-precision real input/output vector.

incx : int

Storage spacing between elements of x.

y : ctypes.c_void_p

Pointer to double-precision real input/output vector.

incy : int

Storage spacing between elements of y.

sparam : numpy.ndarray

sparam[0] contains the flag described below; sparam[1:5] contains the values [h00, h10, h01, h11] that determine the rotation matrix h.

Notes

The rotation matrix may assume the following values:

for flag == -1.0, h == [[h00, h01], [h10, h11]] for flag == 0.0, h == [[1.0, h01], [h10, 1.0]] for flag == 1.0, h == [[h00, 1.0], [-1.0, h11]] for flag == -2.0, h == [[1.0, 0.0], [0.0, 1.0]]

Both x and y must contain n elements.