Learn R Programming

gpuR (version 2.0.6)

eigen,gpuMatrix-method: gpuMatrix Eigen Decomposition

Description

Computes the eigenvalues and eigenvectors for gpuMatrix objects.

Usage

# S4 method for gpuMatrix
eigen(x, symmetric, only.values = FALSE, EISPACK = FALSE)

# S4 method for vclMatrix eigen(x, symmetric, only.values = FALSE, EISPACK = FALSE)

Value

values

A gpuVector containing the unsorted eigenvalues of x.

vectors

A gpuMatrix containing the unsorted eigenvectors of x

Arguments

x

A gpuMatrix object

symmetric

logical indication if matrix is assumed to be symmetric. If not specified or FALSE, the matrix is inspected for symmetry

only.values

if TRUE, returns only eigenvalues (internals still currently calculate both regardless)

EISPACK

logical. Defunct and ignored

Details

This function currently implements the qr_method function from the ViennaCL library. As such, non-symmetric matrices are not supported given that OpenCL does not have a 'complex' data type.

Neither the eigenvalues nor the eigenvectors are sorted as done in the base R eigen method.