Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1b6b7db
Removed deprecated osx 13 runner (#2879)
JohanMabille Jan 6, 2026
0c4ca0d
Add support of 1D expression in xcsv (#2870)
Alex-PLACET Jan 9, 2026
18f6524
added a mapper that maps the indexes of a view to the indices of a co…
alexandrehoffmann Jan 29, 2026
5988352
Updated languageèformatters-pre-commit-hooks (#2890)
JohanMabille Apr 7, 2026
f21347a
Fix NPY header length error due to signed->unsigned conversion (#2889)
Kwonunn Apr 7, 2026
d670054
Fix errors and warnings in the documentation generation (#2891)
Alex-PLACET Apr 15, 2026
4a213a6
docs: Add warning about dangling references with lazy reducers (fixes…
ssam18 Apr 15, 2026
92c873e
Remove unused standard includes (#2894)
serge-sans-paille Apr 22, 2026
8e74749
Removed constexpr workarounds (#2895)
JohanMabille Apr 28, 2026
ff10a85
Removed workaround for GCC4 (#2898)
JohanMabille Apr 29, 2026
61cebfe
Removed workaround for old compilers and old C++ standards (#2902)
JohanMabille Apr 29, 2026
c88d087
Removed xtrivially_default_constructible (#2903)
JohanMabille Apr 30, 2026
68f9a77
Fix CSV reader to handle 8-bit integers (#2904)
Alex-PLACET Apr 30, 2026
42d124c
Fix xview assignment through leading newaxis slices (#2896)
Alex-PLACET May 3, 2026
5caa64d
Update CI: Add clang 22 (#2905)
Alex-PLACET May 5, 2026
3b8e0c4
Fix clip function behavior when a_min is greater than a_max (#2909)
Alex-PLACET May 6, 2026
6c2e51b
Fixed lambda return type used in xfunxtion (#2913)
JohanMabille May 11, 2026
ebeb3c6
Add Linux ARM builds (#2910)
Alex-PLACET May 11, 2026
2b01100
Xcsv dump config (#2906)
Alex-PLACET May 11, 2026
8adbd1c
Prevent buffer overflow when assigning to fixed-dimension xtensor wit…
Alex-PLACET May 11, 2026
961722d
Enhance xmasked_view support for output streaming (#2899)
Alex-PLACET May 11, 2026
a497243
Fix xt::drop with variables (#2912)
Alex-PLACET May 12, 2026
0f06096
Fix reverse iterators xstorage (#2908)
Alex-PLACET May 12, 2026
849665a
Fix vstack for mixed fixed-shape inputs (#2897)
Alex-PLACET May 13, 2026
fe2d7ac
Fix poisson and geometric missing default for template parameter T
ssam18 Apr 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,47 @@ defaults:
shell: bash -e -l {0}
jobs:
build:
runs-on: ubuntu-24.04
name: ${{ matrix.sys.compiler }} ${{ matrix.sys.version }} - ${{ matrix.sys.name }}
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} ${{ matrix.sys.compiler }} ${{ matrix.sys.version }} - ${{ matrix.sys.name }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm]
sys:
- {compiler: clang, version: '17', name: assert, flags: -DXTENSOR_ENABLE_ASSERT=ON}
- {compiler: clang, version: '18', name: column-major, flags: -DDEFAULT_COLUMN_MAJOR=ON}
- {compiler: clang, version: '19', name: assert, flags: -DXTENSOR_ENABLE_ASSERT=ON}
- {compiler: clang, version: '20', name: column-major, flags: -DDEFAULT_COLUMN_MAJOR=ON}
- {compiler: clang, version: '21', name: assert, flags: -DXTENSOR_ENABLE_ASSERT=ON}
- {compiler: clang, version: '21', name: column-major, flags: -DDEFAULT_COLUMN_MAJOR=ON}
- {compiler: clang, version: '22', name: assert, flags: -DXTENSOR_ENABLE_ASSERT=ON}
- {compiler: clang, version: '22', name: column-major, flags: -DDEFAULT_COLUMN_MAJOR=ON}
- {compiler: gcc, version: '11', name: openmp, flags: -DXTENSOR_USE_OPENMP=ON}
- {compiler: gcc, version: '11', name: noexcept, flags: -DXTENSOR_DISABLE_EXCEPTIONS=ON}
- {compiler: gcc, version: '12', name: xsimd, flags: -DXTENSOR_USE_XSIMD=ON}
- {compiler: gcc, version: '13', name: xsimd-tbb, flags: -DXTENSOR_USE_XSIMD=ON -DXTENSOR_USE_TBB=ON}
- {compiler: gcc, version: '13', name: tbb, flags: -DXTENSOR_USE_TBB=ON -DTBB_INCLUDE_DIR=$CONDA_PREFIX/include -DTBB_LIBRARY=$CONDA_PREFIX/lib}
- {compiler: gcc, version: '14', name: xsimd-tbb, flags: -DXTENSOR_USE_XSIMD=ON -DXTENSOR_USE_TBB=ON}
- {compiler: gcc, version: '14', name: tbb, flags: -DXTENSOR_USE_TBB=ON -DTBB_INCLUDE_DIR=$CONDA_PREFIX/include -DTBB_LIBRARY=$CONDA_PREFIX/lib}
# TODO: Activate following gcc versions when switching github runner to ubuntu 26.04
# - {compiler: gcc, version: '15', name: xsimd-tbb, flags: -DXTENSOR_USE_XSIMD=ON -DXTENSOR_USE_TBB=ON}
# - {compiler: gcc, version: '15', name: tbb, flags: -DXTENSOR_USE_TBB=ON -DTBB_INCLUDE_DIR=$CONDA_PREFIX/include -DTBB_LIBRARY=$CONDA_PREFIX/lib}
# - {compiler: gcc, version: '16', name: xsimd-tbb, flags: -DXTENSOR_USE_XSIMD=ON -DXTENSOR_USE_TBB=ON}
# - {compiler: gcc, version: '16', name: tbb, flags: -DXTENSOR_USE_TBB=ON -DTBB_INCLUDE_DIR=$CONDA_PREFIX/include -DTBB_LIBRARY=$CONDA_PREFIX/lib}
exclude:
- os: ubuntu-24.04-arm
sys:
compiler: gcc
version: '12'
- os: ubuntu-24.04-arm
sys:
compiler: gcc
version: '11'

steps:
- name: Install GCC
if: matrix.sys.compiler == 'gcc'
uses: egor-tensin/setup-gcc@v1
uses: egor-tensin/setup-gcc@v2
with:
version: ${{matrix.sys.version}}
platform: x64
Expand All @@ -53,7 +72,7 @@ jobs:
sudo update-alternatives --set clang-scan-deps /usr/bin/clang-scan-deps-${{matrix.sys.version}}

- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set conda environment
uses: mamba-org/setup-micromamba@main
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
fail-fast: false
matrix:
os:
- 13
- 14
- 15

Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pre-commit/action@v3.0.0
- uses: actions/checkout@v6
- uses: pre-commit/action@v3.0.1

include-check:
runs-on: ubuntu-latest
name: Check unused standard includes
steps:
- uses: actions/checkout@v6
- run: pip install diskarzhan
- run: diskarzhan `find include -name '*.hpp'`
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ repos:
- id: remove-tabs
args: [--whitespaces-count, '4']
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.11.0
rev: v2.16.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
types: [file]
files: \.(yaml|yml|clang-format)
additional_dependencies: [setuptools]
- repo: https://github.com/tdegeus/cpp_comment_format
rev: v0.2.1
hooks:
Expand Down
9 changes: 2 additions & 7 deletions docs/source/api/accumulating_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,5 @@ Accumulating functions

Defined in ``xtensor/core/xmath.hpp``

.. doxygenfunction:: cumsum(E&&)

.. doxygenfunction:: cumsum(E&&, std::ptrdiff_t)

.. doxygenfunction:: cumprod(E&&)

.. doxygenfunction:: cumprod(E&&, std::ptrdiff_t)
.. doxygengroup:: acc_functions
:members:
25 changes: 2 additions & 23 deletions docs/source/api/basic_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,5 @@ Basic functions

Defined in ``xtensor/core/xmath.hpp``

.. doxygenfunction:: abs(E&&)

.. doxygenfunction:: fabs(E&&)

.. doxygenfunction:: fmod(E1&&, E2&&)

.. doxygenfunction:: remainder(E1&&, E2&&)

.. doxygenfunction:: fma(E1&&, E2&&, E3&&)

.. doxygenfunction:: maximum(E1&&, E2&&)

.. doxygenfunction:: minimum(E1&&, E2&&)

.. doxygenfunction:: fmax(E1&&, E2&&)

.. doxygenfunction:: fmin(E1&&, E2&&)

.. doxygenfunction:: fdim(E1&&, E2&&)

.. doxygenfunction:: clip(E1&&, E2&&, E3&&)

.. doxygenfunction:: sign(E&&)
.. doxygengroup:: basic_functions
:members:
11 changes: 2 additions & 9 deletions docs/source/api/classif_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,5 @@ Classification functions

Defined in ``xtensor/core/xmath.hpp``

.. doxygenfunction:: isfinite(E&&)

.. doxygenfunction:: isinf(E&&)

.. doxygenfunction:: isnan(E&&)

.. doxygenfunction:: isclose(E1&&, E2&&, double, double, bool)

.. doxygenfunction:: allclose(E1&&, E2&, double, double)
.. doxygengroup:: classif_functions
:members:
9 changes: 2 additions & 7 deletions docs/source/api/error_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,5 @@ Error and gamma functions

Defined in ``xtensor/core/xmath.hpp``

.. doxygenfunction:: erf(E&&)

.. doxygenfunction:: erfc(E&&)

.. doxygenfunction:: tgamma(E&&)

.. doxygenfunction:: lgamma(E&&)
.. doxygengroup:: err_functions
:members:
15 changes: 2 additions & 13 deletions docs/source/api/exponential_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,5 @@ Exponential functions

Defined in ``xtensor/core/xmath.hpp``

.. doxygenfunction:: exp(E&&)

.. doxygenfunction:: exp2(E&&)

.. doxygenfunction:: expm1(E&&)

.. doxygenfunction:: log(E&&)

.. doxygenfunction:: log2(E&&)

.. doxygenfunction:: log10(E&&)

.. doxygenfunction:: log1p(E&&)
.. doxygengroup:: exp_functions
:members:
19 changes: 2 additions & 17 deletions docs/source/api/hyperbolic_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,5 @@ Hyperbolic functions

Defined in ``xtensor/core/xmath.hpp``

.. _sinh-function-reference:
.. doxygenfunction:: sinh(E&&)

.. _cosh-function-reference:
.. doxygenfunction:: cosh(E&&)

.. _tanh-function-reference:
.. doxygenfunction:: tanh(E&&)

.. _asinh-func-ref:
.. doxygenfunction:: asinh(E&&)

.. _acosh-func-ref:
.. doxygenfunction:: acosh(E&&)

.. _atanh-func-ref:
.. doxygenfunction:: atanh(E&&)
.. doxygengroup:: hyper_functions
:members:
9 changes: 3 additions & 6 deletions docs/source/api/index_related.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ Index related functions

Defined in ``xtensor/core/xoperation.hpp``

.. doxygenfunction:: where(const T&)
The logical operator group documents the index-producing overloads of
``xt::where``, ``xt::nonzero`` and ``xt::argwhere``.

.. doxygenfunction:: nonzero(const T&)

.. doxygenfunction:: argwhere

.. doxygenfunction:: from_indices
``xt::from_indices`` is documented on the ``xtensor`` API page.
25 changes: 2 additions & 23 deletions docs/source/api/nan_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,5 @@ NaN functions

Defined in ``xtensor/core/xmath.hpp``

.. doxygenfunction:: nan_to_num(E&&)

.. doxygenfunction:: nanmin(E&&, X&&, EVS)

.. doxygenfunction:: nanmax(E&&, X&&, EVS)

.. doxygenfunction:: nansum(E&&, X&&, EVS)

.. doxygenfunction:: nanmean(E&&, X&&, EVS)

.. doxygenfunction:: nanvar(E&&, X&&, EVS)

.. doxygenfunction:: nanstd(E&&, X&&, EVS)

.. doxygenfunction:: nanprod(E&&, X&&, EVS)

.. doxygenfunction:: nancumsum(E&&)

.. doxygenfunction:: nancumsum(E&&, std::ptrdiff_t)

.. doxygenfunction:: nancumprod(E&&)

.. doxygenfunction:: nancumprod(E&&, std::ptrdiff_t)
.. doxygengroup:: nan_functions
:members:
13 changes: 2 additions & 11 deletions docs/source/api/nearint_operations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,5 @@ Nearest integer floating point operations

Defined in ``xtensor/core/xmath.hpp``

.. doxygenfunction:: ceil(E&&)

.. doxygenfunction:: floor(E&&)

.. doxygenfunction:: trunc(E&&)

.. doxygenfunction:: round(E&&)

.. doxygenfunction:: nearbyint(E&&)

.. doxygenfunction:: rint(E&&)
.. doxygengroup:: nearint_functions
:members:
71 changes: 10 additions & 61 deletions docs/source/api/operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,68 +9,17 @@ Operators and related functions

Defined in ``xtensor/core/xmath.hpp`` and ``xtensor/core/xoperation.hpp``

.. doxygenfunction:: operator+(E&&)
.. doxygengroup:: arithmetic_operators
:members:

.. doxygenfunction:: operator-(E&&)
.. doxygengroup:: logical_operators
:members:

.. doxygenfunction:: operator+(E1&&, E2&&)
.. doxygengroup:: comparison_operators
:members:

.. doxygenfunction:: operator-(E1&&, E2&&)
.. doxygengroup:: bitwise_operators
:members:

.. doxygenfunction:: operator*(E1&&, E2&&)

.. doxygenfunction:: operator/(E1&&, E2&&)

.. doxygenfunction:: operator||(E1&&, E2&&)

.. doxygenfunction:: operator&&(E1&&, E2&&)

.. doxygenfunction:: operator!(E&&)

.. doxygenfunction:: where(E1&&, E2&&, E3&&)

.. doxygenfunction:: any(E&&)

.. doxygenfunction:: all(E&&)

.. doxygenfunction:: operator<(E1&&, E2&&)

.. doxygenfunction:: operator<=(E1&&, E2&&)

.. doxygenfunction:: operator>(E1&&, E2&&)

.. doxygenfunction:: operator>=(E1&&, E2&&)

.. doxygenfunction:: operator==(const xexpression<E1>&, const xexpression<E2>&)

.. doxygenfunction:: operator!=(const xexpression<E1>&, const xexpression<E2>&)

.. doxygenfunction:: equal(E1&&, E2&&)

.. doxygenfunction:: not_equal(E1&&, E2&&)

.. doxygenfunction:: less(E1&& e1, E2&& e2)

.. doxygenfunction:: less_equal(E1&& e1, E2&& e2)

.. doxygenfunction:: greater(E1&& e1, E2&& e2)

.. doxygenfunction:: greater_equal(E1&& e1, E2&& e2)

.. doxygenfunction:: operator&(E1&&, E2&&)

.. doxygenfunction:: operator|(E1&&, E2&&)

.. doxygenfunction:: operator^(E1&&, E2&&)

.. doxygenfunction:: operator~(E&&)

.. doxygenfunction:: left_shift(E1&&, E2&&)

.. doxygenfunction:: right_shift(E1&&, E2&&)

.. doxygenfunction:: operator<<(E1&&, E2&&)

.. doxygenfunction:: operator>>(E1&&, E2&&)

.. doxygenfunction:: cast(E&&)
.. doxygengroup:: casting_operators
:members:
15 changes: 2 additions & 13 deletions docs/source/api/power_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,5 @@ Power functions

Defined in ``xtensor/core/xmath.hpp``

.. doxygenfunction:: pow(E1&&, E2&&)

.. doxygenfunction:: pow(E&&)

.. doxygenfunction:: square(E1&&)

.. doxygenfunction:: cube(E1&&)

.. doxygenfunction:: sqrt(E&&)

.. doxygenfunction:: cbrt(E&&)

.. doxygenfunction:: hypot(E1&&, E2&&)
.. doxygengroup:: pow_functions
:members:
Loading