amaxgpu: amaxgpu

Description Usage Arguments Value See Also Examples

View source: R/L1blas.R

Description

This function finds the (smallest) index of the element with the maximum magnitude of given vector/matrix by using CUDA cublas function cublasIdamax

Usage

1
amaxgpu(input)

Arguments

input

list consisting of R external GPU pointer and dimension

Value

the resulting index

See Also

amingpu

Examples

1
2
3
a <- 1:4
a_gpu <- creategpu(a)
amaxgpu(a_gpu)

yuanli22/RCUDA documentation built on May 4, 2019, 6:35 p.m.