rocblas_scal_ex Interface Reference

rocblas_scal_ex Interface Reference#

HIPFORT API Reference: hipfort_rocblas::rocblas_scal_ex Interface Reference
hipfort_rocblas::rocblas_scal_ex Interface Reference

! More...

Public Member Functions

integer(kind(rocblas_status_success)) function rocblas_scal_ex_ (handle, n, alpha, alpha_type, x, x_type, incx, execution_type)
 

Detailed Description

!

BLAS EX API

\details
scal_ex  scales each element of vector x with scalar alpha.

    x := alpha  x

Currently supported datatypes are as follows:

    ----------------------------------------
    | alpha_type | x_type | execution_type |
    |------------|--------|----------------|
    |  f16_r     | f16_r  |     f16_r      |
    |  f16_r     | f16_r  |     f32_r      |
    |  f32_r     | f16_r  |     f32_r      |
    |  f32_r     | f32_r  |     f32_r      |
    |  f64_r     | f64_r  |     f64_r      |
    |  f32_c     | f32_c  |     f32_c      |
    |  f64_c     | f64_c  |     f64_c      |
    |  f32_r     | f32_c  |     f32_c      |
    |  f64_r     | f64_c  |     f64_c      |
    ----------------------------------------

@param[in]
handle    [rocblas_handle]
          handle to the rocblas library context queue.
@param[in]
n         [rocblas_int]
          the number of elements in x.
@param[in]
alpha     device pointer or host pointer for the scalar alpha.
@param[in]
alpha_type [rocblas_datatype]
           specifies the datatype of alpha.
@param[inout]
x         device pointer storing vector x.
@param[in]
x_type [rocblas_datatype]
       specifies the datatype of vector x.
@param[in]
incx      [rocblas_int]
          specifies the increment for the elements of x.
@param[in]
execution_type [rocblas_datatype]
               specifies the datatype of computation.

Member Function/Subroutine Documentation

◆ rocblas_scal_ex_()

integer(kind(rocblas_status_success)) function hipfort_rocblas::rocblas_scal_ex::rocblas_scal_ex_ ( type(c_ptr), value  handle,
integer(c_int), value  n,
type(c_ptr), value  alpha,
integer(kind(rocblas_datatype_f16_r)), value  alpha_type,
type(c_ptr), value  x,
integer(kind(rocblas_datatype_f16_r)), value  x_type,
integer(c_int), value  incx,
integer(kind(rocblas_datatype_f16_r)), value  execution_type 
)

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