17 #define ISZERO(d) ((d)==0.0)
39 #if !defined(OPT_LIB) && (__cplusplus >= 201103L)
40 int n = [](
unsigned int colsize) ->
int
42 assert(colsize <= INT_MAX);
43 return static_cast<int>(colsize);
46 int n =
static_cast<int>(a.colsize());
72 cerr <<
"Error in matrix inverse -- matrix singular in inv(dmatrix)\n";
84 sum = sum - a(i,k)*a(k,j);
95 sum = sum - a(i,k)*a(k,j);
126 for (i=j+1;i<=ub;i++)
128 a(i,j) = a(i,j) * dum;
145 int i,ii=0,ip,j,iiflag=0;
156 for (j=ii;j<=i-1;j++)
172 for (j=i+1;j<=ub;j++)
Base class for dvariable.
void ludcmp(const dmatrix &a, const ivector &indx, const double &d)
Lu decomposition of a constant matrix.
dvar_vector & elem(int i)
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
void lubksb(dmatrix a, const ivector &indx, dvector b)
LU decomposition back susbstitution alogrithm for constant object.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
df1_two_variable fabs(const df1_two_variable &x)
Array of integers(int) with indexes from index_min to indexmax.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Class definition of matrix with derivitive information .
dvector value(const df1_one_vector &v)
Fundamental data type for reverse mode automatic differentiation.