ADMB Documentation  11.1.2493
 All Classes Files Functions Variables Typedefs Friends Defines
Defines | Functions
fvar_m15.cpp File Reference

(* $Id: fvar_m15.cpp 789 2010-10-05 01:01:09Z johnoel $)

#include <fvar.hpp>

Go to the source code of this file.

Defines

#define TINY   1.0e-20;

Functions

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

Define 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 18 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 212 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 38 of file fvar_m15.cpp.

int min ( const int  a,
const int  b 
)

Smallest of two integers.

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

Definition at line 26 of file fvar_m15.cpp.