gmatrix-class: Class "gmatrix"

Description Objects from the Class Slots Methods Author(s) See Also Examples

Description

This object contains a pointer to a matrix on a NVIDIA GPU.

Objects from the Class

Objects should NOT be created by calls of the form new("gmatrix", ...). Instead use the gmatrix, 'as.gmatrix' or 'g' functions.

Slots

ptr:

Represents an external pointer to the data on the GPU

nrow:

Object of class "integer" representing the number of rows for the matrix

ncol:

Object of class "integer" representing the number of cols for the matrix

rownames:

Should be a character vector with length equal nrow

colnames:

Should be a character vector with length equal nrow

type:

Must be 0L, 1L, 2L or 3L. These integers represent the types "double", "single", "integer" or "logical" respectively.

device:

Object of class "integer" representing the device

Methods

-

signature(e1 = "gmatrix", e2 = "gmatrix"): subtraction operator

-

signature(e1 = "gmatrix", e2 = "gvector"): subtraction operator

-

signature(e1 = "gmatrix", e2 = "logical"): subtraction operator

-

signature(e1 = "gmatrix", e2 = "matrix"): subtraction operator

-

signature(e1 = "gmatrix", e2 = "missing"): subtraction operator

-

signature(e1 = "gmatrix", e2 = "numeric"): subtraction operator

-

signature(e1 = "gvector", e2 = "gmatrix"): subtraction operator

-

signature(e1 = "logical", e2 = "gmatrix"): subtraction operator

-

signature(e1 = "matrix", e2 = "gmatrix"): subtraction operator

-

signature(e1 = "numeric", e2 = "gmatrix"): subtraction operator

!

signature(x = "gmatrix"): not operator

!=

signature(e1 = "gmatrix", e2 = "gmatrix"): not equal operator

!=

signature(e1 = "gmatrix", e2 = "gvector"): not equal operator

!=

signature(e1 = "gmatrix", e2 = "logical"): not equal operator

!=

signature(e1 = "gmatrix", e2 = "matrix"): not equal operator

!=

signature(e1 = "gmatrix", e2 = "numeric"): not equal operator

!=

signature(e1 = "gvector", e2 = "gmatrix"): not equal operator

!=

signature(e1 = "logical", e2 = "gmatrix"): not equal operator

!=

signature(e1 = "matrix", e2 = "gmatrix"): not equal operator

!=

signature(e1 = "numeric", e2 = "gmatrix"): not equal operator

%%

signature(e1 = "gmatrix", e2 = "gmatrix"): mod operator

%%

signature(e1 = "gmatrix", e2 = "gvector"): mod operator

%%

signature(e1 = "gmatrix", e2 = "logical"): mod operator

%%

signature(e1 = "gmatrix", e2 = "matrix"): mod operator

%%

signature(e1 = "gmatrix", e2 = "numeric"): mod operator

%%

signature(e1 = "gvector", e2 = "gmatrix"): mod operator

%%

signature(e1 = "logical", e2 = "gmatrix"): mod operator

%%

signature(e1 = "matrix", e2 = "gmatrix"): mod operator

%%

signature(e1 = "numeric", e2 = "gmatrix"): mod operator

%*%

signature(x = "gmatrix", y = "gmatrix"): matrix multiplication operator

%*%

signature(x = "gmatrix", y = "gvector"): matrix multiplication operator

%*%

signature(x = "gmatrix", y = "logical"): matrix multiplication operator

%*%

signature(x = "gmatrix", y = "matrix"): matrix multiplication operator

%*%

signature(x = "gmatrix", y = "numeric"): matrix multiplication operator

%*%

signature(x = "gvector", y = "gmatrix"): matrix multiplication operator

%*%

signature(x = "logical", y = "gmatrix"): matrix multiplication operator

%*%

signature(x = "matrix", y = "gmatrix"): matrix multiplication operator

%*%

signature(x = "numeric", y = "gmatrix"): matrix multiplication operator

%x%

signature(X = "gmatrix", Y = "gmatrix"): kronecker product

%x%

signature(X = "gmatrix", Y = "gvector"): kronecker product

%x%

signature(X = "gmatrix", Y = "numeric"): kronecker product

%x%

signature(X = "gvector", Y = "gmatrix"): kronecker product

%x%

signature(X = "numeric", Y = "gmatrix"): kronecker product

&

signature(e1 = "gmatrix", e2 = "gmatrix"): and operator

&

signature(e1 = "gmatrix", e2 = "gvector"): and operator

&

signature(e1 = "gmatrix", e2 = "logical"): and operator

&

signature(e1 = "gmatrix", e2 = "matrix"): and operator

&

signature(e1 = "gmatrix", e2 = "numeric"): and operator

&

signature(e1 = "gvector", e2 = "gmatrix"): and operator

&

signature(e1 = "logical", e2 = "gmatrix"): and operator

&

signature(e1 = "matrix", e2 = "gmatrix"): and operator.

&

signature(e1 = "numeric", e2 = "gmatrix"): and operator.

*

signature(e1 = "gmatrix", e2 = "gmatrix"): elementwise multiplication

*

signature(e1 = "gmatrix", e2 = "gvector"): elementwise multiplication

*

signature(e1 = "gmatrix", e2 = "logical"): elementwise multiplication

*

signature(e1 = "gmatrix", e2 = "matrix"): elementwise multiplication

*

signature(e1 = "gmatrix", e2 = "numeric"): elementwise multiplication

*

signature(e1 = "gvector", e2 = "gmatrix"): elementwise multiplication

*

signature(e1 = "logical", e2 = "gmatrix"): elementwise multiplication

*

signature(e1 = "matrix", e2 = "gmatrix"): elementwise multiplication

*

signature(e1 = "numeric", e2 = "gmatrix"): elementwise multiplication

/

signature(e1 = "gmatrix", e2 = "gmatrix"): division operator

/

signature(e1 = "gmatrix", e2 = "gvector"): division operator

/

signature(e1 = "gmatrix", e2 = "logical"): division operator

/

signature(e1 = "gmatrix", e2 = "matrix"): division operator

/

signature(e1 = "gmatrix", e2 = "numeric"): division operator

/

signature(e1 = "gvector", e2 = "gmatrix"): division operator

/

signature(e1 = "logical", e2 = "gmatrix"): division operator

/

signature(e1 = "matrix", e2 = "gmatrix"): division operator

/

signature(e1 = "numeric", e2 = "gmatrix"): division operator

[

signature(x = "gmatrix", i = "gvector", j = "gvector"): indexing

[

signature(x = "gmatrix", i = "gvector", j = "missing"): indexing

[

signature(x = "gmatrix", i = "gvector", j = "numeric"): indexing

[

signature(x = "gmatrix", i = "numeric", j = "gvector"): indexing

[

signature(x = "gmatrix", i = "numeric", j = "missing"): indexing

[

signature(x = "gmatrix", i = "numeric", j = "numeric"): indexing

[

signature(x = "gmatrix", i = "missing", j = "missing", k = "missing"): indexing

[<-

signature(x = "gmatrix", i = "gvector", j = "gvector"): indexing

[<-

signature(x = "gmatrix", i = "gvector", j = "missing"): indexing

[<-

signature(x = "gmatrix", i = "gvector", j = "numeric"): indexing .

[<-

signature(x = "gmatrix", i = "numeric", j = "gvector"): indexing

[<-

signature(x = "gmatrix", i = "numeric", j = "missing"): indexing

[<-

signature(x = "gmatrix", i = "numeric", j = "numeric"): indexing

[<-

signature(x = "gmatrix", i = "missing", j = "missing", k = "missing"): indexing

^

signature(e1 = "gmatrix", e2 = "gmatrix"): power operator

^

signature(e1 = "gmatrix", e2 = "gvector"): power operator

^

signature(e1 = "gmatrix", e2 = "logical"): power operator

^

signature(e1 = "gmatrix", e2 = "matrix"): power operator

^

signature(e1 = "gmatrix", e2 = "numeric"): power operator

^

signature(e1 = "gvector", e2 = "gmatrix"): power operator

^

signature(e1 = "logical", e2 = "gmatrix"): power operator

^

signature(e1 = "matrix", e2 = "gmatrix"): power operator

^

signature(e1 = "numeric", e2 = "gmatrix"): power operator

|

signature(e1 = "gmatrix", e2 = "gmatrix"): or operator

|

signature(e1 = "gmatrix", e2 = "gvector"): or operator

|

signature(e1 = "gmatrix", e2 = "logical"): or operator

|

signature(e1 = "gmatrix", e2 = "matrix"): or operator

|

signature(e1 = "gmatrix", e2 = "numeric"): or operator

|

signature(e1 = "gvector", e2 = "gmatrix"): or operator

|

signature(e1 = "logical", e2 = "gmatrix"): or operator

|

signature(e1 = "matrix", e2 = "gmatrix"): or operator

|

signature(e1 = "numeric", e2 = "gmatrix"): or operator

+

signature(e1 = "gmatrix", e2 = "gmatrix"): plus operator

+

signature(e1 = "gmatrix", e2 = "gvector"): plus operator

+

signature(e1 = "gmatrix", e2 = "logical"): plus operator

+

signature(e1 = "gmatrix", e2 = "matrix"): plus operator

+

signature(e1 = "gmatrix", e2 = "missing"): plus operator

+

signature(e1 = "gmatrix", e2 = "numeric"): plus operator

+

signature(e1 = "gvector", e2 = "gmatrix"): plus operator

+

signature(e1 = "logical", e2 = "gmatrix"): plus operator

+

signature(e1 = "matrix", e2 = "gmatrix"): plus operator

+

signature(e1 = "numeric", e2 = "gmatrix"): plus operator

<

signature(e1 = "gmatrix", e2 = "gmatrix"): less than operator

<

signature(e1 = "gmatrix", e2 = "gvector"): less than operator

<

signature(e1 = "gmatrix", e2 = "logical"): less than operator

<

signature(e1 = "gmatrix", e2 = "matrix"): less than operator

<

signature(e1 = "gmatrix", e2 = "numeric"): less than operator

<

signature(e1 = "gvector", e2 = "gmatrix"): less than operator

<

signature(e1 = "logical", e2 = "gmatrix"): less than operator

<

signature(e1 = "matrix", e2 = "gmatrix"): less than operator

<

signature(e1 = "numeric", e2 = "gmatrix"): less than operator

<=

signature(e1 = "gmatrix", e2 = "gmatrix"): less than or equal operator

<=

signature(e1 = "gmatrix", e2 = "gvector"): less than or equal operator

<=

signature(e1 = "gmatrix", e2 = "logical"): less than or equal operator

<=

signature(e1 = "gmatrix", e2 = "matrix"): less than or equal operator

<=

signature(e1 = "gmatrix", e2 = "numeric"): less than or equal operator

<=

signature(e1 = "gvector", e2 = "gmatrix"): less than or equal operator

<=

signature(e1 = "logical", e2 = "gmatrix"): less than or equal operator

<=

signature(e1 = "matrix", e2 = "gmatrix"): less than or equal operator

<=

signature(e1 = "numeric", e2 = "gmatrix"): less than or equal operator

==

signature(e1 = "gmatrix", e2 = "gmatrix"): equal operator

==

signature(e1 = "gmatrix", e2 = "gvector"): equal operator

==

signature(e1 = "gmatrix", e2 = "logical"): equal operator

==

signature(e1 = "gmatrix", e2 = "matrix"): equal operator

==

signature(e1 = "gmatrix", e2 = "numeric"): equal operator

==

signature(e1 = "gvector", e2 = "gmatrix"): equal operator

==

signature(e1 = "logical", e2 = "gmatrix"): equal operator

==

signature(e1 = "matrix", e2 = "gmatrix"): equal operator

==

signature(e1 = "numeric", e2 = "gmatrix"): equal operator

>

signature(e1 = "gmatrix", e2 = "gmatrix"): greater than operator

>

signature(e1 = "gmatrix", e2 = "gvector"): greater than operator

>

signature(e1 = "gmatrix", e2 = "logical"): greater than operator

>

signature(e1 = "gmatrix", e2 = "matrix"): greater than operator

>

signature(e1 = "gmatrix", e2 = "numeric"): greater than operator

>

signature(e1 = "gvector", e2 = "gmatrix"): greater than operator

>

signature(e1 = "logical", e2 = "gmatrix"): greater than operator

>

signature(e1 = "matrix", e2 = "gmatrix"): greater than operator

>

signature(e1 = "numeric", e2 = "gmatrix"): greater than operator

>=

signature(e1 = "gmatrix", e2 = "gmatrix"): greater than or equal operator

>=

signature(e1 = "gmatrix", e2 = "gvector"): greater than or equal operator

>=

signature(e1 = "gmatrix", e2 = "logical"): greater than or equal operator

>=

signature(e1 = "gmatrix", e2 = "matrix"): greater than or equal operator

>=

signature(e1 = "gmatrix", e2 = "numeric"): greater than or equal operator

>=

signature(e1 = "gvector", e2 = "gmatrix"): greater than or equal operator

>=

signature(e1 = "logical", e2 = "gmatrix"): greater than or equal operator

>=

signature(e1 = "matrix", e2 = "gmatrix"): greater than or equal operator

>=

signature(e1 = "numeric", e2 = "gmatrix"): greater than or equal operator

as.gmatrix

signature(data = "gmatrix"): coersion function

as.gvector

signature(x = "gmatrix"): coersion function

as.integer

signature(x = "gmatrix"): coersion function

as.logical

signature(x = "gmatrix"): coersion function

as.matrix

signature(x = "gmatrix"): coersion function

as.numeric

signature(x = "gmatrix"): coersion function

as.vector

signature(x = "gmatrix"): coersion function

abs

signature(x = "gmatrix"): absolute value

acos

signature(x = "gmatrix"): inverse cosine

acosh

signature(x = "gmatrix"): inverse hyperbolic cosine

asin

signature(x = "gmatrix"): inverse sin

asinh

signature(x = "gmatrix"): inverse hyperbolic sin

atan

signature(x = "gmatrix"): inverse tangent

atanh

signature(x = "gmatrix"): inverse hyperbolic tangent

ceiling

signature(x = "gmatrix"): ceiling function

colMeans

signature(x = "gmatrix"): mean of each column

colnames

signature(x = "gmatrix"): column names

colnames<-

signature(x = "gmatrix"): set column names

colSums

signature(x = "gmatrix"): sum of each column

cos

signature(x = "gmatrix"): cos function

cosh

signature(x = "gmatrix"): hyperbolic cos

crossprod

signature(x = "gmatrix", y = "gmatrix"): calculates: t(x) %*% y

crossprod

signature(x = "gmatrix", y = "gvector"): calculates: t(x) %*% y

crossprod

signature(x = "gmatrix", y = "logical"): calculates: t(x) %*% y

crossprod

signature(x = "gmatrix", y = "matrix"): calculates: t(x) %*% y

crossprod

signature(x = "gmatrix", y = "missing"): calculates: t(x) %*% y

crossprod

signature(x = "gmatrix", y = "numeric"): calculates: t(x) %*% y

crossprod

signature(x = "gvector", y = "gmatrix"): calculates: t(x) %*% y

crossprod

signature(x = "logical", y = "gmatrix"): calculates: t(x) %*% y

crossprod

signature(x = "matrix", y = "gmatrix"): calculates: t(x) %*% y

crossprod

signature(x = "numeric", y = "gmatrix"): calculates: t(x) %*% y

tcrossprod

signature(x = "gmatrix", y = "gmatrix"): calculates: x %*% t(y)

tcrossprod

signature(x = "gmatrix", y = "gvector"): calculates: x %*% t(y)

tcrossprod

signature(x = "gmatrix", y = "logical"): calculates: x %*% t(y)

tcrossprod

signature(x = "gmatrix", y = "matrix"): calculates: x %*% t(y)

tcrossprod

signature(x = "gmatrix", y = "missing"): calculates: x %*% t(y)

tcrossprod

signature(x = "gmatrix", y = "numeric"): calculates: x %*% t(y)

tcrossprod

signature(x = "gvector", y = "gmatrix"): calculates: x %*% t(y)

tcrossprod

signature(x = "logical", y = "gmatrix"): calculates: x %*% t(y)

tcrossprod

signature(x = "matrix", y = "gmatrix"): calculates: x %*% t(y)

tcrossprod

signature(x = "numeric", y = "gmatrix"): calculates: x %*% t(y)

device

signature(x = "gmatrix"): get device property

device<-

signature(x = "gmatrix"): set device property

diag

signature(x = "gmatrix"): diagonal

diag<-

signature(x = "gmatrix"): set the diagonal of a matrix

dim

signature(x = "gmatrix"): dimension

dim<-

signature(x = "gmatrix"): set dimension

dimnames

signature(x = "gmatrix"): get dimnames

dimnames<-

signature(x = "gmatrix"): set dimnames

exp

signature(x = "gmatrix"): exponentiate function

expm1

signature(x = "gmatrix"): computes exp(x) - 1

floor

signature(x = "gmatrix"): floor function

gamma

signature(x = "gmatrix"): gamma function

ifelse

signature(test = "gmatrix"): conditional selection

is.finite

signature(x = "gmatrix"): finite status

is.infinite

signature(x = "gmatrix"): infinite status

is.na

signature(x = "gmatrix"): missing status

is.nan

signature(x = "gmatrix"): not a number status

length

signature(x = "gmatrix"): total number of elements in object

lgamma

signature(x = "gmatrix"): log gamma function

log

signature(x = "gmatrix"): logarithm function

log10

signature(x = "gmatrix"): base 10 log

log1p

signature(x = "gmatrix"): log(1+x)

log2

signature(x = "gmatrix"): base 2 log

max

signature(x = "gmatrix"): maximum of all elements

mean

signature(x = "gmatrix"): mean of all elements

min

signature(x = "gmatrix"): min of all elements

ncol

signature(x = "gmatrix"): number of columns

nrow

signature(x = "gmatrix"): number of rows

round

signature(x = "gmatrix"): round function (only to nearest whole number)

rowMeans

signature(x = "gmatrix"): mean of each row

rownames

signature(x = "gmatrix"): names of rows

rownames<-

signature(x = "gmatrix"): set row names

rowSums

signature(x = "gmatrix"): sum of each row

show

signature(object = "gmatrix"): show the data

sign

signature(x = "gmatrix"): return the sign

sin

signature(x = "gmatrix"): sin function

sinh

signature(x = "gmatrix"): hyperbolic sin

sqrt

signature(x = "gmatrix"): square root

sum

signature(x = "gmatrix"): sum

t

signature(x = "gmatrix"): transpose

tan

signature(x = "gmatrix"): tangent

tanh

signature(x = "gmatrix"): hyperbolic tangent

type

signature(x = "gmatrix"): get type (e.g "double")

type<-

signature(x = "gmatrix"): set type

solve

signature(a = "gmatrix", b="ANY"): set type

Author(s)

Nathan Morris

See Also

gvector

Examples

1
showClass("gmatrix")

gmatrix documentation built on May 29, 2017, 2:20 p.m.