Prev Next

@(@\newcommand{\B}[1]{ {\bf #1} } \newcommand{\R}[1]{ {\rm #1} }@)@
Properties of an AD Function

Syntax
n = af.size_ind()
m = af.size_dep()
v = af.size_var()
p = af.size_op()

af
This object has prototype
     const a_fun 
af

size_ind
The return value has prototype
     int 
n
an is the size of the vector ax in the function constructor; i.e., the number of independent variables.

size_dep
The return value has prototype
     int 
m
an is the size of the vector ay in the function constructor; i.e., the number of dependent variables.

size_var
The return value has prototype
     int 
v
an is the number of variables in the function. This includes the independent variables, dependent variables, and any variables that are used to compute the dependent variables from the independent variables.

size_op
The return value has prototype
     int 
p
an is the number of atomic operations that are used to express the dependent variables as a function of the independent variables.

Example
C++ , Octave , Perl , Python .
Input File: lib/a_fun.cpp