mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 09:53:13 +08:00
Fix 'Incorrect reference code in STL_interface.hh for ata_product' eigen/isses/2425
This commit is contained in:
parent
9b9496ad98
commit
798fc1c577
@ -84,12 +84,15 @@ public :
|
|||||||
for (int j=0;j<N;j++){
|
for (int j=0;j<N;j++){
|
||||||
for (int i=0;i<N;i++){
|
for (int i=0;i<N;i++){
|
||||||
somme=0.0;
|
somme=0.0;
|
||||||
|
if(i>=j)
|
||||||
|
{
|
||||||
for (int k=0;k<N;k++)
|
for (int k=0;k<N;k++)
|
||||||
somme += A[i][k]*A[j][k];
|
somme += A[i][k]*A[j][k];
|
||||||
X[j][i]=somme;
|
X[j][i]=somme;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static inline void aat_product(const gene_matrix & A, gene_matrix & X, int N)
|
static inline void aat_product(const gene_matrix & A, gene_matrix & X, int N)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user