muBLAS API Reference
Functions
function mublasIsamax
mublasStatus mublasIsamax(
mublasHandle_t handle,
mublas_int n,
const float * x,
mublas_int incx,
mublas_int * result
)
function mublasIdamax
mublasStatus mublasIdamax(
mublasHandle_t handle,
mublas_int n,
const double * x,
mublas_int incx,
mublas_int * result
)
function mublasIzamax
mublasStatus mublasIzamax(
mublasHandle_t handle,
mublas_int n,
const muDoubleComplex * x,
mublas_int incx,
mublas_int * result
)
BLAS Level 1 API
Parameters:
- handle [mublasHandle_t] handle to the mublas library context queue.
- n [mublas_int] the number of elements in x.
- x device pointer storing vector x.
- incx [mublas_int] specifies the increment for the elements of y.
- result device pointer or host pointer to store the amax index. return is 0.0 if n,
incx <= 0.
amax finds the first index of the element of maximum magnitude of a vector x. vector
function mublasIcamax
mublasStatus mublasIcamax(
mublasHandle_t handle,
mublas_int n,
const muComplex * x,
mublas_int incx,
mublas_int * result
)
BLAS Level 1 API
Parameters:
- handle [mublasHandle_t] handle to the mublas library context queue.
- n [mublas_int] number of elements in each vector x_i
- x device array of device pointers storing each vector x_i.
- incx [mublas_int] specifies the increment for the elements of each x_i. incx must be > 0.
- batch_count [mublas_int] number of instances in the batch, must be > 0.
- result device or host array of pointers of batch_count size for results. return is 0 if n,
incx<=0.
amax_batched finds the first index of the element of maximum magnitude of each vector x_i in a batch, for i = 1, ..., batch_count.
function mublasIsamin
mublasStatus mublasIsamin(
mublasHandle_t handle,
mublas_int n,
const float * x,
mublas_int incx,
mublas_int * result
)
function mublasIdamin
mublasStatus mublasIdamin(
mublasHandle_t handle,
mublas_int n,
const double * x,
mublas_int incx,
mublas_int * result
)
function mublasIzamin
mublasStatus mublasIzamin(
mublasHandle_t handle,
mublas_int n,
const muDoubleComplex * x,
mublas_int incx,
mublas_int * result
)
BLAS Level 1 API
Parameters:
- handle [mublasHandle_t] handle to the mublas library context queue.
- n [mublas_int] the number of elements in x.
- x device pointer storing vector x.
- incx [mublas_int] specifies the increment for the elements of y.
- result device pointer or host pointer to store the amin index. return is 0.0 if n,
incx<=0.
amin finds the first index of the element of minimum magnitude of a vector x.
vector
function mublasIcamin
mublasStatus mublasIcamin(
mublasHandle_t handle,
mublas_int n,
const muComplex * x,
mublas_int incx,
mublas_int * result
)
BLAS Level 1 API
Parameters:
- handle [mublasHandle_t] handle to the mublas library context queue.
- n [mublas_int] number of elements in each vector x_i
- x device array of device pointers storing each vector x_i.
- incx [mublas_int] specifies the increment for the elements of each x_i. incx must be > 0.
- batch_count [mublas_int] number of instances in the batch, must be > 0.
- result device or host pointers to array of batch_count size for results. return is 0 if n,
incx<=0.
amin_batched finds the first index of the element of minimum magnitude of each vector x_i in a batch, for i = 1, ..., batch_count.
function mublasSasum
mublasStatus mublasSasum(
mublasHandle_t handle,
mublas_int n,
const float * x,
mublas_int incx,
float * result
)
function mublasDasum
mublasStatus mublasDasum(
mublasHandle_t handle,
mublas_int n,
const double * x,
mublas_int incx,
double * result
)
function mublasDzasum
mublasStatus mublasDzasum(
mublasHandle_t handle,
mublas_int n,
const muDoubleComplex * x,
mublas_int incx,
double * result
)
BLAS Level 1 API
Parameters:
- handle [mublasHandle_t] handle to the mublas library context queue.
- n [mublas_int] the number of elements in x and y.
- x device pointer storing vector x.
- incx [mublas_int] specifies the increment for the elements of x. incx must be > 0.
- result device pointer or host pointer to store the asum product. return is 0.0 if
n <= 0.
asum computes the sum of the magnitudes of elements of a real vector x, or the sum of magnitudes of the real and imaginary parts of elements if x is a complex vector
function mublasScasum
mublasStatus mublasScasum(
mublasHandle_t handle,
mublas_int n,
const muComplex * x,
mublas_int incx,
float * result
)
BLAS Level 1 API
Parameters:
- handle [mublasHandle_t] handle to the mublas library context queue.
- n [mublas_int] the number of elements in x and y.
- x device pointer storing vector x.
- incx [mublas_int] specifies the increment for the elements of x. incx must be > 0.
- result device pointer or host pointer to store the asum product. return is 0.0 if
n <= 0.
asum computes the sum of the magnitudes of elements of a real vector x, or the sum of magnitudes of the real and imaginary parts of elements if x is a complex vector
function mublasSaxpy
mublasStatus mublasSaxpy(
mublasHandle_t handle,
mublas_int n,
const float * alpha,
const float * x,
mublas_int incx,
float * y,
mublas_int incy
)