Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/constblock #10

Closed
wants to merge 6 commits into from

Conversation

loic-fejoz
Copy link
Contributor

Motivation

Because GNU Radio tutorials are using basic blocks applying some constant operation (AddConst, MulConst), we should add this feature. See also the discussion 6.

Solution

  • Shared code for operations requiring 1 constant.
  • Implementation for Addition and Multiplication based on closure.

@bastibl
Copy link
Member

bastibl commented Sep 2, 2021

What a great idea to make it generic over a function! Why didn't I think of that :-) I adapted it slightly so that it is a block with arbitrary FnMut(A) -> B. I hope that's fine for you. All changes are on top of your commits. (GitHub doesn't seem to recognize that these commits are in-tree, probably because I rebased them. Sorry -.-)

@bastibl bastibl closed this Sep 2, 2021
@bastibl
Copy link
Member

bastibl commented Sep 2, 2021

I called the adapted block Apply, see here: https://github.com/FutureSDR/FutureSDR/blob/master/src/blocks/apply.rs#L14-L20

@loic-fejoz loic-fejoz deleted the feature/add-const branch September 2, 2021 19:27
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.

None yet

2 participants