Skip to content

Span API support#51

Merged
vitalsong merged 20 commits intodevelopfrom
feature/span-support
Jul 22, 2025
Merged

Span API support#51
vitalsong merged 20 commits intodevelopfrom
feature/span-support

Conversation

@vitalsong
Copy link
Owner

  • Remove auto cast arr_real -> arr_cmplx;
  • Add complex(re) function;
  • Add span implementation;
  • Return span from slice function for step=1;
  • Remove base_array reference from slice;
  • Check same array by pointer range;
  • Simplify cast for cmplx_t type;
  • Add span instead base_array for some math functions;
  • Update tests;

@vitalsong vitalsong force-pushed the feature/span-support branch from 762b60b to 907a53f Compare April 29, 2024 16:50
@vitalsong vitalsong changed the base branch from master to develop April 29, 2024 16:50
@vitalsong vitalsong force-pushed the develop branch 2 times, most recently from 0076124 to daf6171 Compare May 25, 2024 16:36
@vitalsong vitalsong force-pushed the feature/span-support branch from 907a53f to 79aeeb3 Compare May 26, 2024 09:46
@vitalsong vitalsong changed the base branch from develop to master May 26, 2024 09:46
@codecov
Copy link

codecov bot commented May 26, 2024

Codecov Report

Attention: Patch coverage is 95.10490% with 21 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/subband.cpp 80.00% 6 Missing ⚠️
include/dsplib/slice.h 94.93% 4 Missing ⚠️
lib/fft/primes-fft.h 73.33% 4 Missing ⚠️
lib/fft.cpp 66.66% 2 Missing ⚠️
lib/fft/fact-fft.h 60.00% 2 Missing ⚠️
include/dsplib/array.h 98.43% 1 Missing ⚠️
include/dsplib/czt.h 0.00% 1 Missing ⚠️
include/dsplib/span.h 98.41% 1 Missing ⚠️
Files with missing lines Coverage Δ
include/dsplib/fft.h 100.00% <ø> (+75.00%) ⬆️
include/dsplib/ifft.h 100.00% <ø> (ø)
include/dsplib/iterator.h 100.00% <100.00%> (ø)
include/dsplib/lms.h 97.14% <100.00%> (+2.69%) ⬆️
include/dsplib/math.h 88.63% <ø> (+2.27%) ⬆️
include/dsplib/rls.h 97.82% <100.00%> (+2.08%) ⬆️
include/dsplib/types.h 100.00% <ø> (ø)
include/dsplib/utils.h 78.57% <ø> (-7.85%) ⬇️
lib/czt.cpp 90.24% <100.00%> (+0.77%) ⬆️
lib/detector.cpp 82.69% <100.00%> (-0.33%) ⬇️
... and 22 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vitalsong
Copy link
Owner Author

TODO: add span iterators

@vitalsong vitalsong changed the base branch from master to develop April 23, 2025 10:34
- Remove auto cast arr_real -> arr_cmplx;
- Add `complex(re)` function;
- Add `span` implementation;
- Return `span` from `slice` function for step=1;
- Remove `base_array` reference from `slice`;
- Check same array by pointer range;
- Simplify cast for `cmplx_t` type;
- Add `span` instead `base_array` for some `math` functions;
- Update tests;
@vitalsong vitalsong force-pushed the feature/span-support branch from b4514df to f646656 Compare April 23, 2025 14:06
@vitalsong vitalsong force-pushed the feature/span-support branch from f646656 to 52fd89b Compare April 23, 2025 14:10
@vitalsong vitalsong force-pushed the feature/span-support branch from 978323b to 66669f2 Compare April 29, 2025 12:56
@vitalsong vitalsong force-pushed the feature/span-support branch from 07d0d41 to fb49d3f Compare July 16, 2025 09:26
@vitalsong vitalsong merged commit bae23cf into develop Jul 22, 2025
15 checks passed
@vitalsong vitalsong deleted the feature/span-support branch July 22, 2025 10:41
vitalsong added a commit that referenced this pull request Aug 6, 2025
* Span API support

- Remove auto cast `arr_real` to `arr_cmplx`;
- Add `complex(re)` function;
- Add `span` implementation;
- Return `span` from `slice` function for step=1;
- Remove `base_array` reference from `slice`;
- Check same array by pointer range;
- Simplify cast for `cmplx_t` type;
- Add span iterators;
- Add span api for some functions;
- Add span API for `concatenate`. Empty span support;
- Remove base_array::operator(int i);
- Add non-copy fft solve functions;
- Add CMakePresets.json;
- Remove deprecated;
- Rename `slice_t` to `mut_slice_t`;
- Rename `const_slice_t` to `slice_t`;
- Limit the set of types for base_array<T>;
- Rename `span` to `make_span`;
- Add some `DSPLIB_ASSERT`;
- Fix benchs error;
- Code refactoring;
- Fix CI config;
- Update tests;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant