rocblas_rot_batched_ex Interface Reference

rocblas_rot_batched_ex Interface Reference#

hipFORT API Reference: hipfort_rocblas::rocblas_rot_batched_ex Interface Reference
hipfort_rocblas::rocblas_rot_batched_ex Interface Reference

BLAS EX API. More...

Public Member Functions

integer(c_int) function rocblas_rot_batched_ex_ (handle, n, x, x_type, incx, y, y_type, incy, c, s, cs_type, batch_count, execution_type)
 

Detailed Description

BLAS EX API.

rot_batched_ex applies the Givens rotation matrix defined by c=cos(alpha) and s=sin(alpha) to batched vectors x_i and y_i, for i = 1, ..., batch_count. Scalars c and s may be stored in either host or device memory. Location is specified by calling rocblas_set_pointer_mode.

In the case where cs_type is real:

x := c * x + s * y
y := c * y - s * x

In the case where cs_type is complex, the imaginary part of c is ignored:

x := real(c) * x + s * y
y := real(c) * y - conj(s) * x

Currently supported datatypes are as follows:


x_type y_type cs_type execution_type
bf16_r bf16_r bf16_r f32_r
f16_r f16_r f16_r f32_r
f32_r f32_r f32_r f32_r
f64_r f64_r f64_r f64_r
f32_c f32_c f32_c f32_c
f32_c f32_c f32_r f32_c
f64_c f64_c f64_c f64_c
f64_c f64_c f64_r f64_c

Parameters
[in]handle- [rocblas_handle] handle to the rocblas library context queue.
[in]n- [rocblas_int] number of elements in each x_i and y_i vectors.
[in,out]x- device array of deivce pointers storing each vector x_i.
[in]x_type- [rocblas_datatype] specifies the datatype of each vector x_i.
[in]incx- [rocblas_int] specifies the increment between elements of each x_i.
[in,out]y- device array of device pointers storing each vector y_i.
[in]y_type- [rocblas_datatype] specifies the datatype of each vector y_i.
[in]incy- [rocblas_int] specifies the increment between elements of each y_i.
[in]c- device pointer or host pointer to scalar cosine component of the rotation matrix.
[in]s- device pointer or host pointer to scalar sine component of the rotation matrix.
[in]cs_type- [rocblas_datatype] specifies the datatype of c and s.
[in]batch_count- [rocblas_int] the number of x and y arrays, the number of batches.
[in]execution_type- [rocblas_datatype] specifies the datatype of computation.

Member Function/Subroutine Documentation

◆ rocblas_rot_batched_ex_()

integer(c_int) function hipfort_rocblas::rocblas_rot_batched_ex::rocblas_rot_batched_ex_ ( type(c_ptr), value  handle,
integer(c_int), value  n,
type(c_ptr), value  x,
integer(c_int), value  x_type,
integer(c_int), value  incx,
type(c_ptr), value  y,
integer(c_int), value  y_type,
integer(c_int), value  incy,
type(c_ptr), value  c,
type(c_ptr), value  s,
integer(c_int), value  cs_type,
integer(c_int), value  batch_count,
integer(c_int), value  execution_type 
)

The documentation for this interface was generated from the following file: