12.07.2015 Views

CUBLAS Library

CUBLAS Library

CUBLAS Library

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 2BLAS1 FunctionsReference: http://www.netlib.org/blas/srotg.fThis function does not set any error status.Function cublasSrotm()void cublasSrotm (int n, float *x, int incx, float *y,int incy, const float* sparam)applies the modified Givens transformation, h, to the 2×n matrixThe elements of x are in x[ lx + i * incx], i = 0 to n-1, wherelx = 1 if incx >= 0, elselx = 1 + ( 1 – n) * incx ;x Ty Ty is treated similarly using ly and incy.With sparam[0] = sflag, h has one of the following forms:sflag=-1.0fsflag = 0.0fh=sh00 sh01sh10 sh11h=1.0f sh01sh10 1.0fsflag = 1.0fh=sh00 1.0f-1.0f sh11sflag=h =-2.0f1.0f 0.0f0.0f 1.0fInputn number of elements in input vectors.x single-precision vector with n elements.incx storage spacing between elements of x.y single-precision vector with n elements.incy storage spacing between elements of y.sparam 5-element vector. sparam[0] is sflag described above. sparam[1]through sparam[4] contain the 2×2 rotation matrix h: sparam[1]contains sh00, sparam[2] contains sh10, sparam[3] containssh01, and sparam[4] contains sh11.PG-00000-002_V1.1 21NVIDIA

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!