20 int & ierr=(
int&)_ierr;
23 int mmin=m.indexmin();
41 return solve(m,v,ierr);
51 int& ierr=(
int&) _ierr;
58 for (
int i=mmin;i<=mmax;i++)
72 return solve(m,n,ierr);
86 cerr <<
" Incompatible vector and matrix sizes in solve " <<
endl;
90 x(imin)=v(imin)/m(imin,imin);
91 for (
int i=imin;i<=imax;i++)
93 int jmin=
admax(imin,i-bw+1);
95 for (
int j=jmin;j<=i-1;j++)
99 x(i)=(v(i)-ssum)/m(i,i);
116 cerr <<
"incompatible size in solve_trans" <<
endl;
122 for (i=mmax;i>=mmin;i--)
125 int jmax=
admin(mmax,i+bw-1);
126 for (j=i+1;j<=jmax;j++)
130 x(i)=(y(i)-
sum)/
M(i,i);
147 cerr <<
"incompatible size in solve_trans" <<
endl;
153 for (i=mmax;i>=mmin;i--)
157 for (j=i+1;j<=jmax;j++)
161 x(i)=(y(i)-
sum)/
M(i,i);
176 cerr <<
" Incompatible vector and matrix sizes in solve " <<
endl;
180 x(imin)=v(imin)/m(imin,imin);
181 for (
int i=imin;i<=imax;i++)
185 for (
int j=jmin;j<=i-1;j++)
189 x(i)=(v(i)-ssum)/m(i,i);
Description not yet available.
dvector lower_triangular_solve(const dmatrix &m, const dvector &v)
Description not yet available.
dmatrix trans(const dmatrix &m1)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
dvector choleski_solve_neghess_error(dmatrix M, dvector &v, int &ierror)
Description not yet available.
dmatrix choleski_decomp_neghess_error(const dmatrix &MM, int &ierror)
Description not yet available.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int bandwidth(void) const
dvector lower_triangular_solve_trans(const dmatrix &M, const dvector &y)
Description not yet available.
df1_one_matrix choleski_decomp(const df1_one_matrix &MM)
dvector solve(const dmatrix &aa, const dvector &z)
Solve a linear system using LU decomposition.
prnstream & endl(prnstream &)
dvector solve_trans(const lower_triangular_dmatrix &M, const dvector &y)
Description not yet available.
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
dmatrix choleski_decomp_error(const dmatrix &MM, int &ierror)
Description not yet available.
Description not yet available.
dvector & shift(int min)
Shift valid range of subscripts.
dvector choleski_solve_error(dmatrix M, dvector &v, int &ierror)
Description not yet available.