CppADCodeGen  2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Array Struct Reference
Collaboration diagram for Array:
Collaboration graph

Public Attributes

void * data
 
unsigned long size
 
int sparse
 
const unsigned long * idx
 
unsigned long nnz
 

Detailed Description

A wrapper for an array. It is used to call forward and reverse functions of atomic functions in the generated C source-code.

Definition at line 25 of file lang_c_atomic_fun.hpp.

Member Data Documentation

◆ data

void* Array::data

Array values. For dense arrays its size is defined by ::size otherwise by ::nnz.

Definition at line 30 of file lang_c_atomic_fun.hpp.

Referenced by CppAD::cg::GenericModelExternalFunctionWrapper< Base >::forward(), and CppAD::cg::GenericModelExternalFunctionWrapper< Base >::reverse().

◆ idx

const unsigned long* Array::idx

Indexes of sparse array (undefined for dense).

Definition at line 42 of file lang_c_atomic_fun.hpp.

◆ nnz

unsigned long Array::nnz

Number of non-zeros (size of data; undefined for dense).

Definition at line 46 of file lang_c_atomic_fun.hpp.

◆ size

◆ sparse

int Array::sparse

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