alloc: Create Object with its Own Memory

View source: R/bigGP.R

allocR Documentation

Create Object with its Own Memory

Description

alloc is an internal auxiliary function that creates an object of the size of the input with the goal of allocating new memory for use in the C functions used by the package.

Usage

alloc(input, inputPos = '.GlobalEnv')

Arguments

input

an object name, given as a character string, giving the name of the object whose size is to be mimiced in creating the output, or the length of the output vector to be created.

inputPos

where to look for the input, given as a character string (unlike get). This can indicate an environment, a list, or a ReferenceClassobject.

Value

A new numeric vector of the appropriate size.


bigGP documentation built on April 26, 2023, 1:16 a.m.