Skip to content

Unable to directly call np.ones on user_type #519

Closed
@ofloveandhate

Description

@ofloveandhate

Using the Eigenpy-provided user_type.cpp, one is unable to directly make np arrays of ones / zeros.

In test_user_type.py, changing line

mat = np.array(np.ones((rows, cols)).astype(np.int32), dtype=dtype)

to

mat = np.ones((rows,cols), dtype=dtype)

causes the test to fail with error

SystemError: <built-in function copyto> returned NULL without setting an exception

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