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

Possibility of creating novel spaces/manifolds in python #107

Open
costashatz opened this issue Sep 11, 2024 · 1 comment
Open

Possibility of creating novel spaces/manifolds in python #107

costashatz opened this issue Sep 11, 2024 · 1 comment

Comments

@costashatz
Copy link

Hello,

Thanks for the great library!

As far as I understand, there is no way of creating a new space/manifold in python. I want to do something like:

class MyNewSpace(manifolds.ManifoldAbstract):
    def __init__(self, n):
        self.nx = n
        self.ndx = n

    def neutral(self):
        return np.zeros((n,))

   # ...

Am I understanding the code and this limitation well? If yes, is there a timeline for adding this possibility? It can be handy in case someone wants to test some ideas for new representations quickly. If not, can you point me to a minimal example of how to create a novel space/manifold in python (it is rather obvious how to do this in C++)?

Thanks again!

@ManifoldFR
Copy link
Member

Hello ! Thanks for your interest in the library.

We have no support for deriving manifold classes from Python yet. I think we could do that but it will have to be after we close one of open PRs which change everything. The API is not fully stable yet.

Also, we're not sure of how the algorithms behave yet on non-Lie group manifolds

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

No branches or pull requests

2 participants