gvector-class: Class "gvector"

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

Description

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

Objects from the Class

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

Slots

ptr:

Represents an external pointer to the data on the GPU

length:

Object of class "integer" representing the number of elements in the vector

names:

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 = "gvector"): subtraction operator

-

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

-

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

-

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

-

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

-

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

-

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

-

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

-

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

-

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

!

signature(x = "gvector"): not operator

!=

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

!=

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

!=

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

!=

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

!=

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

!=

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

!=

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

!=

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

!=

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

%%

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

%%

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

%%

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

%%

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

%%

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

%%

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

%%

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

%%

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

%%

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

%*%

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

%*%

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

%*%

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

%*%

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

%*%

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

%*%

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

%*%

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

%*%

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

%*%

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

%o%

signature(X = "gvector", Y = "gvector"): outer product

%o%

signature(X = "gvector", Y = "logical"): outer product

%o%

signature(X = "gvector", Y = "numeric"): outer product

%o%

signature(X = "logical", Y = "gvector"): outer product

%o%

signature(X = "numeric", Y = "gvector"): outer product

%x%

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

%x%

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

%x%

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

%x%

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

%x%

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

&

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

&

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

&

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

&

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

&

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

&

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

&

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

&

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

&

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

*

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

*

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

*

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

*

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

*

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

*

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

*

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

*

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

*

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

/

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

/

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

/

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

/

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

/

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

/

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

/

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

/

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

/

signature(e1 = "numeric", e2 = "gvector"): 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 = "gvector", i = "ANY", j = "ANY"): 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 = "gvector", i = "ANY", j = "ANY"): indexing

^

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

^

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

^

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

^

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

^

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

^

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

^

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

^

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

^

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

|

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

|

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

|

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

|

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

|

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

|

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

|

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

|

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

|

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

+

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

+

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

+

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

+

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

+

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

+

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

+

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

+

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

+

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

+

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

<

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

<

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

<

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

<

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

<

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

<

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

<

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

<

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

<

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

<=

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

<=

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

<=

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

<=

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

<=

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

<=

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

<=

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

<=

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

<=

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

==

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

==

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

==

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

==

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

==

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

==

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

==

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

==

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

==

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

>

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

>

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

>

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

>

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

>

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

>

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

>

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

>

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

>

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

>=

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

>=

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

>=

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

>=

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

>=

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

>=

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

>=

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

>=

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

>=

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

abs

signature(x = "gvector"): absolute value

acos

signature(x = "gvector"): inverse cosine

acosh

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

as.gmatrix

signature(data = "gvector"):coersion function

as.gvector

signature(x = "gvector"): coersion function

as.integer

signature(x = "gvector"): coersion function

as.logical

signature(x = "gvector"): coersion function

as.matrix

signature(x = "gvector"): coersion function

as.numeric

signature(x = "gvector"): coersion function

as.vector

signature(x = "gvector"): coersion function

asin

signature(x = "gvector"): inverse sine function

asinh

signature(x = "gvector"): inverse hyperbolic sine function

atan

signature(x = "gvector"): inverse tangent function

atanh

signature(x = "gvector"): inverse hyperbolic tangent function

ceiling

signature(x = "gvector"): ceiling function

cos

signature(x = "gvector"): cosine function

cosh

signature(x = "gvector"): hyperbolic cosine

crossprod

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

crossprod

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

crossprod

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

crossprod

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

crossprod

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

crossprod

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

crossprod

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

crossprod

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

device

signature(x = "gvector"): get device

device<-

signature(x = "gvector"): set device

exp

signature(x = "gvector"): exponential function

expm1

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

floor

signature(x = "gvector"): floor function

gamma

signature(x = "gvector"): gamma function

ifelse

signature(test = "gvector"): conditional selection

is.finite

signature(x = "gvector"): finite status

is.infinite

signature(x = "gvector"): infinite status

is.na

signature(x = "gvector"): missing status

is.nan

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

length

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

lgamma

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

log

signature(x = "gvector"): logarithm function

log10

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

log1p

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

log2

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

max

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

mean

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

min

signature(x = "gvector"): minimum of all elements

names

signature(x = "gvector"): get element names

names<-

signature(x = "gvector"): set element names

round

signature(x = "gvector"): round to neares integer

show

signature(object = "gvector"): display object

sign

signature(x = "gvector"): sign

sin

signature(x = "gvector"): sine function

sinh

signature(x = "gvector"): hyperbolic sine function

sort

signature(x = "gvector"): sort

sqrt

signature(x = "gvector"): square root

sum

signature(x = "gvector"): sum of all elements

t

signature(x = "gvector"): transpose

tan

signature(x = "gvector"): tangent function

tanh

signature(x = "gvector"): hyperbolic tangent function

tcrossprod

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

tcrossprod

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

tcrossprod

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

tcrossprod

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

tcrossprod

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

tcrossprod

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

tcrossprod

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

tcrossprod

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

type

signature(x = "gvector"): get type

type<-

signature(x = "gvector"): set type

which

signature(x = "gvector"): index list of TRUE positions

Author(s)

Nathan Morris

See Also

gmatrix

Examples

1
showClass("gvector")

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