xtensor
xtensor copied to clipboard
Segmentation fault with `xt::pytensor<double, 2>` called with A.real
(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