22 int cmin=
M(rmin).indexmin();
24 int cmax=
M(rmin).indexmax();
28 cerr <<
"minimum row and column inidices must equal 1 in "
29 "df1b2matrix choleski_decomp(const df1b2matrix& MM)"
35 cerr <<
"Error in df1b2matrix choleski_decomp(const df1b2matrix& MM)"
36 " Matrix not square" <<
endl;
42 #ifndef SAFE_INITIALIZE
48 if (
value(
M(rmin,rmin))<=0)
50 cerr <<
"Error matrix not positive definite in choleski_decomp"
55 L(rmin,rmin)=
sqrt(
M(rmin,rmin));
56 for (i=rmin+1;i<=rmax;i++)
58 L(i,rmin)=
M(i,rmin)/L(rmin,rmin);
61 for (i=rmin+1;i<=rmax;i++)
63 for (j=rmin+1;j<=i-1;j++)
66 for (k=rmin;k<=j-1;k++)
73 for (k=rmin;k<=i-1;k++)
79 cerr <<
"Error matrix not positive definite in choleski_decomp"
void initialize(void)
Description not yet available.
Description not yet available.
df1_one_matrix choleski_decomp(const df1_one_matrix &MM)
prnstream & endl(prnstream &)
d3_array sqrt(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
Description not yet available.
dvector value(const df1_one_vector &v)