Changeset 1197 for applications/pmsm
- Timestamp:
- 09/29/10 11:21:55 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/simulator_zdenek/ekf_example/matrix_vs.cpp
r1195 r1197 191 191 int *G_ik,*G_jk; 192 192 int irows,jrows; 193 long sigma; // in q 15193 long sigma; // in q30!! 194 194 195 195 for (i=0,Dold_i=Dold,D_i=D;i<rows;i++,Dold_i++,D_i++) { … … 213 213 irows=i*rows; 214 214 sigma = 0; 215 for (k=0, PSIU_ik=PSIU+irows ;216 k<rows; k++, PSIU_ik++ ) {//Dold_i=217 sigma += (((long)(*PSIU_ik)**PSIU_ik)>>15)*(*Dold_ i);215 for (k=0, PSIU_ik=PSIU+irows,Dold_k=Dold; 216 k<rows; k++, PSIU_ik++,Dold_k++) {//Dold_i= 217 sigma += (((long)(*PSIU_ik)**PSIU_ik)>>15)*(*Dold_k); 218 218 } 219 219 sigma += *(Q+i+irows)<<15;