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 )

Solve a linear system using LU decomposition.

Parameters:
 aa A dmatrix containing LU decomposition of input matrix. . z A dvector containing the RHS, of the linear equation , to be solved.
Returns:
A dvector containing solution vector .

Definition at line 42 of file dmat34.cpp.

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

Solve a linear system using LU decomposition.

Parameters:
 aa A dmatrix containing LU decomposition of input matrix. . z A dvector containing the RHS, of the linear equation , to be solved. _ln_unsigned_deg sign
Returns:
A dvector containing solution vector .

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.