skcuda.cublas.cublasSrotm

skcuda.cublas.cublasSrotm(handle, n, x, incx, y, incy, sparam)[source]

Apply a single precision real modified Givens rotation.

Applies the single 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 single precision real input/output vector.
  • incx (int) – Storage spacing between elements of x.
  • y (ctypes.c_void_p) – Pointer to single 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.

References

cublas<t>srotm