ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
Defines | Functions
dmat34.cpp File Reference

(* $Id: dmat34.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

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

Define 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 23 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 28 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 243 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 62 of file dmat34.cpp.