trmmgpu: trmmgpu

Description Usage Arguments Value See Also

View source: R/L3blas.R

Description

This function computes the triangle matrix-matrix multiplication C = a A B or C = a B A by using CUDA cublas function cublasDtrmm

Usage

1
2
trmmgpu(sidemode = 1, fillmode = 1, trans = 1, diagmode = 1,
  alpha = 1, A, B, C)

Arguments

sidemode

indicates whether the given matrix is on the left or right side in the matrix equation solved by a particular function. If sidemode == 1, the matrix is on the left side in the equation If sidemode == 2, the matrix is on the right side in the equation.

fillmode

indicates if matrix A lower or upper part is stored, the other part is not referenced and is inferred from the stored elements. if fillmode == 1 then the triagular banded matrix A is stored column by column, with the main diagonal of the matrix stored in row 1, the first subdiagonal in row 2 (starting at first position), the second subdiagonal in row 3 (starting at first position), etc. if fillmode == 2 then the triangular banded matrix A is stored column by column, with the main diagonal of the matrix stored in row k+1, the first superdiagonal in row k (starting at second position), the second superdiagonal in row k-1 (starting at third position), etc.

trans

matrix A transpose operator, 1 (non-transpose), 2 (transpose), 3 (conjugate transpose); default at 1 (non-transpose)

diagmode

indicates whether the main diagonal of the matrix A is unity and consequently should not be touched or modified by the function. if diagmode = 1, the matrix diagonal has non-unit elements, if diagmode = 2, the matrix diagonal has unit elements.

alpha

scale factor a of matrix AB; default 1

A

input matrix; list of R external GPU pointer and dimension

B

input matrix; list of R external GPU pointer and dimension

C

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

Value

updated matrix C, a list consisting of

See Also

symmgpu


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