xtensor icon indicating copy to clipboard operation
xtensor copied to clipboard

Segmentation fault with `xt::pytensor<double, 2>` called with A.real

Open tdegeus opened this issue 1 year ago • 0 comments

(Posting as reminder for now, will add a minimal reproducer later).

Calling a code

class Foo {
private:
    xt::pytensor<double, 2> m_bar;

public:
    Foo(const xt::pytensor<double, 2>& bar) { m_bar = bar; }
};

with 
```python
A = ...
Foo(A.real)

results in a segmentation fault

tdegeus avatar Dec 06 '22 11:12 tdegeus