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

Project on subspace operator #53

Closed
adler-j opened this issue Nov 19, 2015 · 2 comments
Closed

Project on subspace operator #53

adler-j opened this issue Nov 19, 2015 · 2 comments
Assignees

Comments

@adler-j
Copy link
Member

adler-j commented Nov 19, 2015

When reading the discussion in #49, I realized that we could use a "project on subspace" operator

class Projection(odl.Operator):
    def __init__(self, space, indices):
        assert isinstance(space, ProductSpace)
        self.indices = indices
        super().__init__(space, space[indices], linear=True)

    def _call(self, x):
        return x[self.indices]
@kohr-h
Copy link
Member

kohr-h commented Nov 19, 2015

True, maybe call it ComponentProjection?

@adler-j
Copy link
Member Author

adler-j commented Nov 19, 2015

Yes that is possibly a better name!

@adler-j adler-j self-assigned this Nov 19, 2015
adler-j added a commit that referenced this issue Nov 19, 2015
@adler-j adler-j closed this as completed Nov 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants