TMB Documentation  v1.9.11
Public Attributes | List of all members
config_struct Struct Reference

Configuration variables of a user template. More...

#include <config.hpp>

Public Attributes

bool autopar
 Enable automatic parallization (if OpenMP is enabled) ?
 
int nthreads
 Number of OpenMP threads to use (if OpenMP is enabled)
 
bool atomic
 Trace construction of atomic functions.
 
bool atomic_sparse_log_determinant
 Use atomic sparse log determinant (faster but limited order) ?
 
bool instantly
 Always optimize just after tape creation.
 
bool optimize
 Trace tape optimization.
 
bool parallel
 Trace info from parallel for loops. More...
 
bool sparse_hessian_compress
 Reduce memory of sparse hessian even if reducing speed ?
 

Detailed Description

Configuration variables of a user template.

Configuration variables can either be set from R with config(..., DLL="mymodel") or from the user template after the include statement:

#include <TMB.hpp>
config.trace.parallel = true;
config.trace.optimize = true;
config.trace.atomic = true;
config.optimize.instantly = true;
config.optimize.parallel = false;
config.tape.parallel = true;

Definition at line 23 of file config.hpp.

Member Data Documentation

§ parallel

bool config_struct::parallel

Trace info from parallel for loops.

Enable parallel tape creation.

Allow optimize in parallel (memory consuming)

Definition at line 29 of file config.hpp.


The documentation for this struct was generated from the following file:
License: GPL v2