rocblas_nrm2_strided_batched_ex Interface Reference

rocblas_nrm2_strided_batched_ex Interface Reference#

HIPFORT API Reference: hipfort_rocblas::rocblas_nrm2_strided_batched_ex Interface Reference
hipfort_rocblas::rocblas_nrm2_strided_batched_ex Interface Reference

BLAS_EX API. More...

Public Member Functions

integer(kind(rocblas_status_success)) function rocblas_nrm2_strided_batched_ex_ (handle, n, x, x_type, incx, stride_x, batch_count, results, result_type, execution_type)
 

Detailed Description

BLAS_EX API.

The nrm2_strided_batched_ex functions compute the Euclidean norm over a batch of real or complex vectors.

result := sqrt( x_i'*x_i ) for real vectors x, for i = 1, ..., batch_count
result := sqrt( x_i**H*x_i ) for complex vectors, for i = 1, ..., batch_count

Currently supported datatypes are as follows:


x_type result execution_type
bf16_r bf16_r f32_r
f16_r f16_r f32_r
f32_r f32_r f32_r
f64_r f64_r f64_r
f32_c f32_r f32_r
f64_c f64_r f64_r

Parameters
[in]handle- [rocblas_handle] handle to the rocBLAS library context queue.
[in]n- [rocblas_int] number of elements in each x_i.
[in]x- device pointer to the first vector x_1.
[in]x_type- [rocblas_datatype] specifies the datatype of each vector x_i.
[in]incx- [rocblas_int] specifies the increment for the elements of each x_i. incx must be > 0.
[in]stride_x- [rocblas_stride] stride from the start of one vector (x_i) to the next one (x_i+1). There are no restrictions placed on stride_x. However, ensure that stride_x is of an appropriate size. For a typical case, this means stride_x >= n * incx.
[in]batch_count- [rocblas_int] number of instances in the batch.
[out]resultsdevice pointer or host pointer to array for storing contiguous batch_count results. Returns 0.0 for each element if n <= 0, incx<=0.
[in]result_type- [rocblas_datatype] specifies the datatype of the result.
[in]execution_type- [rocblas_datatype] specifies the datatype of computation.

Member Function/Subroutine Documentation

◆ rocblas_nrm2_strided_batched_ex_()

integer(kind(rocblas_status_success)) function hipfort_rocblas::rocblas_nrm2_strided_batched_ex::rocblas_nrm2_strided_batched_ex_ ( type(c_ptr), value  handle,
integer(c_int), value  n,
type(c_ptr), value  x,
integer(kind(rocblas_datatype_f16_r)), value  x_type,
integer(c_int), value  incx,
integer(c_int64_t), value  stride_x,
integer(c_int), value  batch_count,
type(c_ptr), value  results,
integer(kind(rocblas_datatype_f16_r)), value  result_type,
integer(kind(rocblas_datatype_f16_r)), value  execution_type 
)

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