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

(Last Changed on May 30, 2017 for git-revision daed80c634b2ae20748853604e11149bf3d5e82c.)

#include "fvar.hpp"
#include <math.h>

Go to the source code of this file.

Macros

#define ISZERO(d)   ((d)==0.0)
 

Functions

void lubksb (dvar_matrix a, const ivector &indx, dvar_vector b)
 LU decomposition back susbstitution alogrithm for variable object. More...
 
void ludcmp (const dvar_matrix &_a, const ivector &_indx, const prevariable &_d)
 Lu decomposition of a variable matrix. More...
 

Variables

static double eps0 =1.e-50
 

Macro Definition Documentation

#define ISZERO (   d)    ((d)==0.0)
Id:
fvar_ma4.cpp 789 2010-10-05 01:01:09Z johnoel

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

Definition at line 17 of file fvar_ma4.cpp.

Referenced by lubksb().

Function Documentation

void lubksb ( dvar_matrix  a,
const ivector indx,
dvar_vector  b 
)

LU decomposition back susbstitution alogrithm for variable object.

Parameters
aA dmatrix containing LU decomposition of input matrix. $a$.
indxPermutation vector from ludcmp.
bA dvector containing the RHS, $b$ of the linear equation $A\cdot X = B$, to be solved, and containing on return the 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 143 of file fvar_ma4.cpp.

void ludcmp ( const dvar_matrix _a,
const ivector _indx,
const prevariable _d 
)

Lu decomposition of a variable matrix.

Parameters
_aA dmatrix; replaced by the by its resulting LU decomposition
_indxAn ivector containing the row permutations generated by partial pivoting
_dA double containing -1 or +1 depending whether the number of row interchanges was even or odd, repectively.

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

Definition at line 32 of file fvar_ma4.cpp.

Variable Documentation

double eps0 =1.e-50
static

Definition at line 19 of file fvar_ma4.cpp.

Referenced by ludcmp().