fvar_ma4.cpp File Reference

### (* $Id: fvar_ma4.cpp 789 2010-10-05 01:01:09Z johnoel$)

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

Go to the source code of this file.

## Defines

#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.
void ludcmp (const dvar_matrix &_a, const ivector &_indx, const prevariable &_d)
Lu decomposition of a variable matrix.

## Variables

static double eps0 = 1.e-50

## Define Documentation

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

Definition at line 13 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:
 a A dmatrix containing LU decomposition of input matrix. . indx Permutation vector from ludcmp. b A dvector containing the RHS, of the linear equation , to be solved, and containing on return the 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 130 of file fvar_ma4.cpp.

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

Lu decomposition of a variable matrix.

Parameters:
 _a A dmatrix; replaced by the by its resulting LU decomposition _indx An ivector containing the row permutations generated by partial pivoting _d A 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 28 of file fvar_ma4.cpp.

## Variable Documentation

 double eps0 = 1.e-50 [static]

Definition at line 15 of file fvar_ma4.cpp.

Referenced by ludcmp().