Skip to content

Commit

Permalink
Merge pull request #33 from wtq2255/master
Browse files Browse the repository at this point in the history
Fix bug
  • Loading branch information
wtq2255 authored Jan 23, 2024
2 parents 4ad4df4 + eb12445 commit 619c84a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/audioflux/utils/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def temproal_db(X, base=18.):
"""
X = np.asarray(X, dtype=np.float32, order='C')
if X.ndim != 1:
raise ValueError(f"X[ndim={x.ndim}] must be a 1D array")
raise ValueError(f"X[ndim={X.ndim}] must be a 1D array")

fn = get_fft_lib()['util_temproal']
fn.argtypes = [
Expand Down
2 changes: 2 additions & 0 deletions src/vector/flux_vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void __mdot(float *mArr1,float *mArr2,
}

#if (defined HAVE_ACCELERATE) || (defined HAVE_OPENBLAS) || (defined HAVE_MKL)
memset(mArr3, 0, nLength1 * mLength2 * sizeof(float));
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans,
nLength1, mLength2,
mLength1, 1,
Expand Down Expand Up @@ -60,6 +61,7 @@ void __mdot1(float *mArr1,float *mArr2,
}

#if (defined HAVE_ACCELERATE) || (defined HAVE_OPENBLAS) || (defined HAVE_MKL)
memset(mArr3, 0, nLength1 * nLength2 * sizeof(float));
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
nLength1, nLength2,
mLength1, 1,
Expand Down

0 comments on commit 619c84a

Please sign in to comment.