meangpu: meangpu

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/self_define_CUDA_functions.R

Description

Compute the mean of given vector/matrix

Usage

1

Arguments

x

list consisting of R external GPU pointer and dimension

Details

This function computes the mean of given vector/matrix by using self-defined CUDA function

Value

vector/matrix mean

Author(s)

Yuan Li

See Also

sumgpu

Examples

1
2
a <- creategpu(1:4)
meangpu(a)

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