ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
fvar_m24.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 dmdv_solve (void)
 Adjoint code for dvar_vector solve(const dvar_matrix& aa, const dvar_vector& z,. More...
 
dvar_vector solve (const dvar_matrix &aa, const dvar_vector &z, prevariable &ln_unsigned_det, const prevariable &_sign)
 Solve a linear system using LU decomposition. More...
 
dvar_vector solve (const dvar_matrix &aa, const dvar_vector &z)
 Solve a linear system using LU decomposition. More...
 

Macro Definition Documentation

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

Author: Unknown

Definition at line 26 of file fvar_m24.cpp.

Referenced by solve().

Function Documentation

void dmdv_solve ( void  )

Adjoint code for dvar_vector solve(const dvar_matrix& aa, const dvar_vector& z,.

Definition at line 339 of file fvar_m24.cpp.

Referenced by solve().

dvar_vector solve ( const dvar_matrix aa,
const dvar_vector z,
prevariable ln_unsigned_det,
const prevariable _sign 
)

Solve a linear system using LU decomposition.

Parameters
aaA dvar_matrix containing LU decomposition of input matrix. $a$.
zA dvar_vector containing the RHS, $b$ of the linear equation $A\cdot X = B$, to be solved.
_ln_unsigned_deg
sign
Returns
A dvar_vector containing solution vector $X$.

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

Definition at line 56 of file fvar_m24.cpp.

dvar_vector solve ( const dvar_matrix aa,
const dvar_vector z 
)

Solve a linear system using LU decomposition.

Parameters
aaA dvar_matrix containing LU decomposition of input matrix. $a$.
zA dvar_vector containing the RHS, $b$ of the linear equation $A\cdot X = B$, to be solved.
Returns
A dvar_vector containing solution vector $X$.

Definition at line 37 of file fvar_m24.cpp.