Skip to content

Documentation outdated for numpy example #1205

Closed
@chhenning

Description

@chhenning

On the page I believe the example for initializing a Matrix with a numpy array is using the outdated "init" notation. Look for the "/* Bind MatrixXd (or some other Eigen type) to Python */" comment to find the code.

When I run the code I'm greeted with the following warning:

FutureWarning: pybind11-bound class 'chh.Matrix' is using an old-style placement-new '__init__' which has been deprecated. See the upgrade guide in pybind11's docs. This message is only visible when compiled in debug mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions