Comments (9)
I fixed it on my fork.
Two observations:
- The test cases don’t test for vectors longer than 5 elements; there is a lot of special code for vectors with length greater than 7
- The special code assumes that all arrays are 64 bit aligned; which they aren’t in the example program
I suggest we disable the special code for vectors longer than 7 elements.
from lib_dsp.
from lib_dsp.
BTW, I had a chat with Peter, on Monday.
I've offered to try to find some time to spend working on lib_dsp, to make sure all the examples and documentation etc are correct and all the pull requests merged etc.
Not sure when though, but hopefully soon.
J
from lib_dsp.
I appreciate that the special code speeds it up; but if there is no test case it is quite hard to see that it actually works. Re alignment: I hadn't appreciated that all global arrays are 64-bit aligned.
from lib_dsp.
Agreed, Henk, this is one of the areas that needs tidying up so test cases should cover longer arrays
from lib_dsp.
I renamed the issue to reflect that the code is probably ok, but it is the testing that needs fixing.
from lib_dsp.
indeed
from lib_dsp.
I've written some tests for the dsp_vector functions which seem to show that the muls_addv, muls_subv, mulv_addv, and mulv_subv do not give correct outputs for vector lengths > 7.
from lib_dsp.
Related issue: #123
from lib_dsp.
Related Issues (20)
- FFT testing
- dsp_bfp documentation missing from rst
- dsp_bfp.h causes error when included by a C file HOT 2
- dsp_vector_abs often outputs negative numbers HOT 3
- dsp_vector_{muls_addv, muls_subv, mulv_addv, mulv_subv} do not give correct outputs for vector lengths > 7.
- Double-word alignment of inputs HOT 3
- xmake fails for app_vector HOT 1
- dsp_adaptive_nlms error when the input source_sample is a very low value
- DCT overflows rather than saturates
- Standardise naming convention + add regex regression tests
- Remove `_bfp` from functions that aren't BFP specific
- Add missing docstrings to api/dsp_bfp.h
- Simulator time-out in app_math tests
- Convert legacy tests to run with axe
- Extend non-XS1 processing to XS3 HOT 2
- tests/test_biquad does not build for xcore.ai
- tests/test_fft_forward does not build for xcore.ai HOT 1
- Some tests require autogenerated files and do not build for xcore.ai HOT 1
- tests/dsp_unit_tests cannot run under xcore.ai
- examples/AN00209 Application Note fails to build HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lib_dsp.