Skip to content

Error in pybind for continuous tensor trains #21

@MattJean

Description

@MattJean

Hi,

I got the python error

tci_ttd.get_CTensorTrain(0).core[0](0.1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: unhandled return_value_policy

I suggest istead something like

           .def("eval_core", [](const CTensorTraind& tt, size_t i, double x) {
                    return tt.M[i](x);
                }, "i"_a, "x"_a)

for both CTensorCI1 and 2

See you,

Matt ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions