ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
fvar_m15.cpp File Reference

(Last Changed on August 06, 2022 for git-revision 808780089317c67198079de06b64df009a4a6543.)

#include <fvar.hpp>

Go to the source code of this file.

Macros

#define TINY   1.0e-20;
 

Functions

void dfinvpret (void)
 Adjoint code for dvar_matrix inv(const dvar_matrix& aa). More...
 
dvar_matrix inv (const dvar_matrix &aa)
 Inverse of a varaiable matrix. More...
 
int min (const int a, const int b)
 Return smallest value of two integers a or b. More...
 

Macro Definition Documentation

#define TINY   1.0e-20;
Id:
fvar_m15.cpp 789 2010-10-05 01:01:09Z johnoel

Author: David Fournier Copyright (c) 2009-2012 ADMB Foundation

Definition at line 22 of file fvar_m15.cpp.

Referenced by inv().

Function Documentation

void dfinvpret ( void  )

Adjoint code for dvar_matrix inv(const dvar_matrix& aa).

Definition at line 287 of file fvar_m15.cpp.

Referenced by inv().

dvar_matrix inv ( const dvar_matrix aa)

Inverse of a varaiable matrix.

Parameters
aadvar_matrix conaining matrix to be inverted, $A$.
Returns
dvar_matrix containing $A^{-1}$.

The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 43 of file fvar_m15.cpp.

int min ( const int  a,
const int  b 
)

Return smallest value of two integers a or b.

Parameters
aAn integer
bAn integer
Returns
A integer $ z = \min(a,b)$

Definition at line 31 of file fvar_m15.cpp.