gergpu: gergpu

Description Usage Arguments Value See Also Examples

View source: R/L2blas.R

Description

This function perform the the rank-1 update A = a x y T + A, by using CUDA cublas function cublasDger

Usage

1
gergpu(alpha = 1, x, y, A)

Arguments

alpha

scale factor a of matrix A; default 1

x

input vector; list of R external GPU pointer and dimension

y

input vector; list of R external GPU pointer and dimension

A

input/output matrix; list of R external GPU pointer and dimension

Value

updated matrix A, a list consisting of

See Also

gemvgpu

Examples

1
2
3
4
5
6
7
8
A <- 1:12
x <- 1:3
y <- 1:4
A_gpu <- creategpu(A, 3, 4)
x_gpu <- creategpu(x)
y_gpu <- creategpu(y)
gergpu(1,x_gpu, y_gpu, A_gpu)
gathergpu(A_gpu)

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