nrm2gpu: nrm2gpu

Description Usage Arguments Value Author(s) See Also Examples

View source: R/L1blas.R

Description

This function computes Euclidean norm of given vector/matrix by using CUDA cublas function cublasDnrm2

Usage

1
nrm2gpu(input)

Arguments

input

list consisting of R external GPU pointer and dimension

Value

vector Euclidean norm, a non-negative number

Author(s)

Yuan Li

See Also

dotgpu

Examples

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

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