gseq: Sequence

Description Usage Arguments Value Author(s) See Also Examples

View source: R/02gvector.R

Description

Create a sequence on the GPU.

Usage

1
2
gseq(from = 1, to = 1, by = ((to - from)/(length.out - 1)),
     length.out = NULL, along.with = NULL, type = NULL)

Arguments

from, to

the starting and (maximal) end value of the sequence.

by

number: increment of the sequence.

length.out

desired length of the sequence. A non-negative number, which for seq and seq.int will be rounded up if fractional.

along.with

take the length from the length of this argument

type

output type (i.e. "double", "single", "integer" or "logical")

Value

returns a gvector with the specified sequence. In addition the operator %to% mimics the R base oporator :.

Author(s)

Nathan Morris

See Also

seq

Examples

1
2
gseq(1,100)
1%to%10

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