asumgpu: asumgpu

Description Usage Arguments Value See Also Examples

View source: R/L1blas.R

Description

This function computes the summation of the elements' absolute values of given vector/matrix by using CUDA cublas function cublasDasum

Usage

1
asumgpu(input)

Arguments

input

list consisting of R external GPU pointer and dimension

Value

the vector/matrix's elements absolute values summation

See Also

amaxgpu

Examples

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

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