Skip to content

Commit 6952fb2

Browse files
committed
bug fix in invertLsTriangles
1 parent 26a686e commit 6952fb2

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
@@ -692,15 +692,13 @@ void invertLsMtx3D
692692
/* get the unit vectors for the current group */
693693
for(i=0; i<3; i++)
694694
for(j=0; j<3; j++)
695-
tempGroup[j*3+i] = U_spkr[ls_groups[n*3+i]*3 + j];
695+
tempGroup[j*3+i] = U_spkr[ls_groups[n*3+i]*3 + j]; /* ^T */
696696

697697
/* get inverse of current group */
698698
utility_sinv(hSinv, tempGroup, tempInv, 3);
699699

700-
/* store the vectorized inverse as a row the output */
701-
for(i=0; i<3; i++)
702-
for(j=0; j<3; j++)
703-
(*layoutInvMtx)[n*9+(i*3+j)] = tempInv[j*3+i];
700+
/* store the vectorised inverse as a row in the output */
701+
cblas_scopy(9, tempInv, 1, (*layoutInvMtx) + n*9, 1);
704702
}
705703
utility_sinv_destroy(&hSinv);
706704
}

0 commit comments

Comments
 (0)