various update of of BTL

This commit is contained in:
Gael Guennebaud
2009-03-04 07:21:17 +00:00
parent 3288e9e168
commit 45136ac3b6
19 changed files with 294 additions and 60 deletions

View File

@@ -146,6 +146,15 @@ public :
X[j] += t2;
}
}
static inline void syr2(gene_matrix & A, gene_vector & B, gene_vector & X, int N)
{
for (int j=0; j<N; ++j)
{
for (int i=j; i<N; ++i)
A[j][i] += B[i]*X[j] + B[j]*X[i];
}
}
static inline void atv_product(gene_matrix & A, gene_vector & B, gene_vector & X, int N)
{