python-librosa/csr_matrix-attr-H.patch

21 lines
635 B
Diff

From 44baef3d4e748135575e9b688894c01b37a3685b Mon Sep 17 00:00:00 2001
From: Brian McFee <brian.mcfee@nyu.edu>
Date: Wed, 26 Jun 2024 10:08:45 -0400
Subject: [PATCH] fix #1849
---
librosa/core/constantq.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/librosa/core/constantq.py
+++ b/librosa/core/constantq.py
@@ -707,7 +707,7 @@ def icqt(
)
# Transpose the basis
- inv_basis = fft_basis.H.todense()
+ inv_basis = fft_basis.conjugate().T.todense()
# Compute each filter's frequency-domain power
freq_power = 1 / np.sum(util.abs2(np.asarray(inv_basis)), axis=0)