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

(Last Changed on November 25, 2015 for git-revision 0952c5b67e5eff8d230aa13e43961a7c286482c1.)

#include <df1b2fun.h>

Go to the source code of this file.

Classes

class  df1b2matrix_pair
 

Macros

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

Functions

df1b2variable get_ln_det (const df1b2matrix &b, int &sgn)
 
ivector getreindex (ivector &indx)
 
df1b2variable ln_det (const df1b2matrix &M, int &sgn)
 
df1b2variable ln_det (const df1b2matrix &M)
 
df1b2vector lubksb (const df1b2matrix &alpha, const df1b2matrix &beta, ivector &, const df1b2vector &b)
 LU decomposition back susbstitution alogrithm for df1b2matrix object. More...
 
df1b2matrix lubksb (const df1b2matrix &alpha, const df1b2matrix &beta, ivector &, const df1b2matrix &B)
 
dmatrix ludcmp (const dmatrix &M, int kludge)
 
void ludcmp (const df1b2matrix &a, int k)
 
df1b2matrix_pair ludcmp (const df1b2matrix &a)
 
df1b2matrix reorder (const df1b2matrix &M, const ivector &indx)
 
df1b2vector reorder (const df1b2vector &M, const ivector &indx)
 
dmatrix reorder (const dmatrix &CM, ivector &indx)
 
df1b2vector solve (df1b2matrix &M, df1b2vector &v)
 
df1b2vector solve (df1b2matrix &M, df1b2vector &v, const df1b2variable &_ln_det)
 
df1b2vector solve (df1b2matrix &M, df1b2vector &v, const df1b2variable &_ln_det, const int &sgn)
 
void xswitch (int &i1, int &i2)
 

Macro Definition Documentation

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

Author: David Fournier Copyright (c) 2008, 2009, 2010 Regents of the University of California

Definition at line 12 of file f1b2lndt.cpp.

Referenced by lubksb().

Function Documentation

df1b2variable get_ln_det ( const df1b2matrix b,
int &  sgn 
)

Definition at line 81 of file f1b2lndt.cpp.

Referenced by ln_det(), and solve().

ivector getreindex ( ivector indx)

Definition at line 351 of file f1b2lndt.cpp.

Referenced by ln_det().

df1b2variable ln_det ( const df1b2matrix M,
int &  sgn 
)

Definition at line 299 of file f1b2lndt.cpp.

df1b2variable ln_det ( const df1b2matrix M)

Definition at line 324 of file f1b2lndt.cpp.

df1b2vector lubksb ( const df1b2matrix alpha,
const df1b2matrix beta,
ivector ,
const df1b2vector b 
)

LU decomposition back susbstitution alogrithm for df1b2matrix 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 41 of file f1b2lndt.cpp.

df1b2matrix lubksb ( const df1b2matrix alpha,
const df1b2matrix beta,
ivector ,
const df1b2matrix B 
)

Definition at line 105 of file f1b2lndt.cpp.

dmatrix ludcmp ( const dmatrix M,
int  kludge 
)
void ludcmp ( const df1b2matrix a,
int  k 
)

Definition at line 155 of file f1b2lndt.cpp.

df1b2matrix_pair ludcmp ( const df1b2matrix a)

Definition at line 233 of file f1b2lndt.cpp.

df1b2matrix reorder ( const df1b2matrix M,
const ivector indx 
)

Definition at line 172 of file f1b2lndt.cpp.

Referenced by ln_det(), ludcmp(), and solve().

df1b2vector reorder ( const df1b2vector M,
const ivector indx 
)

Definition at line 203 of file f1b2lndt.cpp.

dmatrix reorder ( const dmatrix CM,
ivector indx 
)

Definition at line 330 of file f1b2lndt.cpp.

df1b2vector solve ( df1b2matrix M,
df1b2vector v 
)

Definition at line 366 of file f1b2lndt.cpp.

df1b2vector solve ( df1b2matrix M,
df1b2vector v,
const df1b2variable _ln_det 
)

Definition at line 385 of file f1b2lndt.cpp.

df1b2vector solve ( df1b2matrix M,
df1b2vector v,
const df1b2variable _ln_det,
const int &  sgn 
)

Definition at line 407 of file f1b2lndt.cpp.

void xswitch ( int &  i1,
int &  i2 
)

Definition at line 344 of file f1b2lndt.cpp.

Referenced by getreindex().