xtensor icon indicating copy to clipboard operation
xtensor copied to clipboard

C++ tensors with broadcasting and lazy computing

Results 252 xtensor issues
Sort by recently updated
recently updated
newest added

While using `xt::get_rank` to detect the rank of various XTensor objects, we noticed that the following test fails: ``` template void check_adapt_tensor(xt::xtensor_adaptor& x) { REQUIRE(xt::get_rank::value == N); } TEST_CASE("xt::get_rank", "[xtensor]")...

Hello everyone. Thank you very much for your awesome project! I am currently trying to compute the variance over some tensors but if I supply an axis to calculate the...

xt::xtensor img_array_trans = xt::cast\(xt::transpose(img_array, {2, 0, 1})) / 255.0f; slower than n_arrary = np.transpose(n_arrary.astype( np.float32) / 255.0, (2, 0, 1)) # 浅拷贝 n_arrary = np.ascontiguousarray(n_arrary) # 深拷贝 CC = g++...

When I study xtensor with document https://xtensor.readthedocs.io/en/latest/scalar.html The result of the following code not match the document, it is the same as result in "Assignment" So there no different between...

# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ]...

Version: xtensor version: 0.25.0 xsimd version: 13.0.0 xtl version: 0.7.7 Here is the gcc info ``` gcc -v ─╯ Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with:...

# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ]...

# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ]...

With this code: ``` xt::xarray A = xt::ones({ 6, 4, 6, 8 }); auto aa = xt::view(A, 0, xt::all()); xt::adapt(aa.shape()); auto bb = xt::view(A, 0, xt::all(), xt::all(), xt::all()); xt::adapt(bb.shape()); auto...

Hi everyone, I've been quite a happy user of xtensor for some of the radio astronomy data processing tools I've been involved in. However, I notice that there's no development...