34template <
class Matrix,
unsigned int n,
unsigned int idim>
35bool Dfact(Matrix& rhs,
typename Matrix::value_type& det) {
38 if (idim < n || n <= 0) {
46 typename Matrix::value_type*
a = rhs.Array();
49 static unsigned int nxch, i, j, k, l;
50 static typename Matrix::value_type
p,
q, tf;
61 for (j = 1; j <= n; ++j) {
62 const unsigned int ji = j * idim;
63 const unsigned int jj = j + ji;
69 for (i = j + 1; i <= n; ++i) {
77 for (l = 1; l <= n; ++l) {
78 const unsigned int li = l*idim;
79 const unsigned int jli = j + li;
80 const unsigned int kli = k + li;
97 if (t < 1e-19 || t > 1e19) {
108 const unsigned int jm1 = j - 1;
109 const unsigned int jpi = (j + 1) * idim;
110 const unsigned int jjpi = j + jpi;
112 for (k = j + 1; k <= n; ++k) {
113 const unsigned int ki = k * idim;
114 const unsigned int jki = j + ki;
115 const unsigned int kji = k + jpi;
117 for (i = 1; i <= jm1; ++i) {
118 const unsigned int ii = i * idim;
119 a[jki] -=
a[i + ki] *
a[j + ii];
120 a[kji] -=
a[i + jpi] *
a[k + ii];
124 a[kji] -=
a[jjpi] *
a[k + ji];
bool Dfact(Matrix &rhs, typename Matrix::value_type &det)
Definition: Dfact.hh:35
Expr< UnaryOp< Fabs< T >, Expr< A, T, D >, T >, T, D > fabs(const Expr< A, T, D > &rhs)
Definition: UnaryOperators.hh:96
void a()
Definition: check_aligned.C:59
TTree * t
Definition: check_shower.C:4
q
Definition: testBGReduction_AllMethods.C:55
p
Definition: testBGReduction_AllMethods.C:8