Skip to content

showing how to do it with classes #4

@jerabaul29

Description

@jerabaul29

@vbelus do you think it is possible to / could you also develop an example with some classes? For example a class that from the C++ part:

  • gets initialized with an exponent (init method)
  • has a set_array method that takes an array, computes array**exponent and stores it in the class (set_array method)
  • has a get_array method that returns the stored array (get_array method).

This is to check that we manage to have some form of persistence from the C++ side while calling from the Python (may be very useful in the case when we want some stuff to survive on the C++ class independently of the python).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions