modello.init: Initialise Modello Session

Description Usage Arguments Value Author(s) Examples

Description

Allocates all the arrays necessary to initialise the modello session.

Usage

1
2
3
4
5
6
modello.init(
  n.numbers = 1e+06,
  n.nodes = 1e+06,
  n.graphs = 1e+06,
  n.opts = 1e+07
)

Arguments

n.numbers

number of numbers (size of NUMBERS_)

n.nodes

number of nodes (size of NODES_)

n.graphs

number of graphs (size of GRAPHS_)

n.opts

number of optimisers (size of OPTS_)

Value

Return invisible NULL

Author(s)

Filippo Monari

Examples

1
2
3
4
5
6
modello.init(10, 10, 10, 10) # Initilaises the modello session with arrays of the given size
modello.is.init() # TRUE
modello.reset()   # restart the modello session with initial array sizes 
modello.is.init() # TRUE
modello.close()   # Closes modello
modello.is.init() # FALSE

modello documentation built on Feb. 2, 2021, 9:06 a.m.