Closed yoshipon closed 7 years ago
Thank you for reporting!
Which version of xtensor
and xtensor-python
do you use ?
Thank you for your reply.
I am using latest version of them. I cloned their git repositories just few minutes ago and installed with cmake.
Ok, it seems the bug is in xtensor. I can reproduce it with the following code:
xt::xtensor<int, 1> a = { 1 };
xt::xtensor<int, 1> res = 2 * a;
I'm working on a fix.
@yoshipon the bug has been fixed in xtensor
master. Can you confirm it works for you ?
@JohanMabille Thank you very much for your super-fast response. I confirmed that now the problem is fixed.
you're welcome!
@yoshipon we have made a patch release of xtensor with this bugfix.
xtensor 0.11.3
.
The conda recipe is building on conda forge.
I cloned their git repositories just few minutes ago and installed with cmake.
Cool!
If you are working with other xtensor projects such as xtensor-python, we recommend using the latest the latest tagged version in general.
Also, we have a fairly active chat room here: https://gitter.im/QuantStack/Lobby !
@SylvainCorlay Thank you for informing about them!
Thank you for developing xtensor and xtensor-python, which are very practical libraries. In some cases, I want to write the following functions and export to Python with pybind11:
This function can be compiled with g++ (5.4.0@ubuntu 16.04). However, the following Python code stops with Segmentation Fault (core dumped):
foo(np.array([1]))
although this code works correctly:foo(np.array([1,2,3]))
If you have some ideas about this bug and don't have enough time for debugging, I would like to try fixing according to your comments.