gmatrix (version 0.3)

gsvd-class: Class "gsvd"

Description

Contains the results of an SVD decomposition as returned by the svd method. The SVD method is only available for cuda v7.0 or greater.

Arguments

Objects from the Class

Objects should be created by a call to the svd() method on a gmatrix object. The slots of this object are essentually the same as those created by the base svd function. However the VT is the transpose of the v slot in R base. The gmatrix svd function does not allow the user to select the number of singular values.

Slots

U:
Object of class "gmatrix" whose columns contain the left singular vectors.
S:
Object of class "gvector" containing the singular values.
VT:
Object of class "gmatrix" whose columns contain the TRANSPOSE of the left singular vectors.

See Also

svd

Examples

M=gmatrix(grnorm(25), 5,5,dup=FALSE)
mysvd=svd(M)
mysvd@U