Skip to content

Possibility of creating novel spaces/manifolds in python #311

@costashatz

Description

@costashatz

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions