diff yeti/cqtkernel.yeti @ 72:642df7b3346f

Support returning a magnitude spectrum (dense) etc
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 20 Mar 2014 16:15:43 +0000
parents 27007f8302f4
children c2e9c91ed3f7
line wrap: on
line diff
--- a/yeti/cqtkernel.yeti	Wed Mar 19 10:30:20 2014 +0000
+++ b/yeti/cqtkernel.yeti	Thu Mar 20 16:15:43 2014 +0000
@@ -124,7 +124,7 @@
     wx1 = vec.maxindex (complex.magnitudes (cm.getRow 0 kmat));
     wx2 = vec.maxindex (complex.magnitudes (cm.getRow (cm.height kmat - 1) kmat));
 
-    subset = cm.columnSlice kmat wx1 (wx2+1);
+    subset = cm.flipped (cm.columnSlice kmat wx1 (wx2+1));
     square = cm.product (cm.conjugateTransposed subset) subset;
 
     diag = complex.magnitudes (cm.getDiagonal 0 square);