xtensor-r icon indicating copy to clipboard operation
xtensor-r copied to clipboard

R bindings for xtensor

Results 15 xtensor-r issues
Sort by recently updated
recently updated
newest added

Hi, I have been experiencing compilation errors when trying to work with rtensor containing rlogical (i.e. boolean) data. For example, if I turn your test https://github.com/xtensor-stack/xtensor-r/blob/0a84316e99eb47a1ea87dee572d0b22fa19ca80d/test/rcpp_tests.cpp#L56-L61 into ```cpp int cpp_lgl(xt::rtensor&...

So, I've been debugging an issue all morning, and finally _think_ I have a grasp of what's happening. It's not a fun one, so be warned. **The short version is:**...

This PR shows the segmentation fault of the C++ tests on `macOS_10_15`

I am writing a package to read `zarr` arrays (https://zarr.readthedocs.io/en/stable/) in `R`. For this I am using the `z5` headers (https://github.com/constantinpape/z5/tree/master/include/z5) and `xtensor-r`. `z5` includes facilities to read data into...

The R check for the generated cran package triggers the following warning (NOTE): ```bash File ‘xtensor/libs/xtensor.so’: Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’ It is good practice to register native routines...

Enhancement

I can't tell if this is expected behavior of `eye()` or not. Is there a column major option for it? I dont really see anything here about row/column major, so...

Hi `xtensor` team, really impressed with your product. I'm working on some examples using R, but I'm having a bit of trouble with the broadcasting piece. I think there might...

Question

Currently, something like this is allowed with no problems: ```cpp SEXP rray__exp_impl(const xt::rarray& x) { xt::rarray res = xt::exp(x); return res; } ``` The (potentially safer) approach would be to...

For some reason, calling `argsort()` on an rarray like this one crashes, but works on a column major xarray. ```cpp // [[Rcpp::depends(xtensor)]] // [[Rcpp::plugins(cpp14)]] #include #include #include #include using namespace...

Any idea why this compiles without `variance` but not with it? ```cpp // [[Rcpp::depends(xtensorrr)]] // [[Rcpp::plugins(cpp14)]] #include #include using namespace Rcpp; // [[Rcpp::export]] xt::rarray xtensor_sum(xt::rarray x) { std::vector axes; axes.push_back(0);...