Skip to content

Commit e99bf9a

Browse files
committed
bug fix in invertLsMtx2D()
1 parent e147322 commit e99bf9a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

framework/modules/saf_vbap/saf_vbap.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -946,15 +946,13 @@ void invertLsMtx2D
946946
/* get the unit vectors for the current group */
947947
for(i=0; i<2; i++)
948948
for(j=0; j<2; j++)
949-
tempGroup[j*2+i] = U_spkr[ls_pairs[n*2+i]*2 + j];
949+
tempGroup[j*2+i] = U_spkr[ls_pairs[n*2+i]*2 + j]; /* ^T */
950950

951951
/* get inverse of current group */
952952
utility_sinv(hSinv, tempGroup, tempInv, 2);
953953

954-
/* store the vectorized inverse as a row the output */
955-
for(i=0; i<2; i++)
956-
for(j=0; j<2; j++)
957-
(*layoutInvMtx)[n*4+(i*2+j)] = tempInv[j*2+i];
954+
/* store the vectorised inverse as a row in the output */
955+
cblas_scopy(4, tempInv, 1, (*layoutInvMtx) + n*4, 1);
958956
}
959957

960958
utility_sinv_destroy(&hSinv);

0 commit comments

Comments
 (0)