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

(Last Changed on July 03, 2022 for git-revision 63d0f490b6e317ee99ec9e5e7109924918282c58.)

#include <fvar.hpp>

Go to the source code of this file.

Macros

#define TINY   1.0e-20;
 

Functions

dvector csolve (const dmatrix &aa, const dvector &z)
 Solve a linear system using LU decomposition. More...
 
void dmdv_solve (void)
 Adjoint code for dvar_vector solve(const dvar_matrix& aa, const dvar_vector& z,. More...
 
dvector solve (const dmatrix &aa, const dvector &z)
 Solve a linear system using LU decomposition. More...
 
dvector solve (const dmatrix &aa, const dvector &z, const double &_ln_unsigned_det, double &sign)
 Solve a linear system using LU decomposition. More...
 

Macro Definition Documentation

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

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

Definition at line 27 of file dmat34.cpp.

Referenced by solve().

Function Documentation

dvector csolve ( const dmatrix aa,
const dvector z 
)

Solve a linear system using LU decomposition.

Definition at line 32 of file dmat34.cpp.

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().

dvector solve ( const dmatrix aa,
const dvector z 
)
dvector solve ( const dmatrix aa,
const dvector z,
const double &  _ln_unsigned_det,
double &  sign 
)

Solve a linear system using LU decomposition.

Parameters
aaA dmatrix containing LU decomposition of input matrix. $a$.
zA dvector containing the RHS, $b$ of the linear equation $A\cdot X = B$, to be solved.
_ln_unsigned_deg
sign
Returns
A dvector 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 66 of file dmat34.cpp.