Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 13 additions & 13 deletions docs/source/adaptor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ The following example shows how to bring an ``std::vector`` into the expression

#include <cstddef>
#include <vector>
#include <xtensor/xarray.hpp>
#include <xtensor/xadapt.hpp>
#include <xtensor/containers/xarray.hpp>
#include <xtensor/containers/xadapt.hpp>

std::vector<double> v = {1., 2., 3., 4., 5., 6. };
std::vector<std::size_t> shape = { 2, 3 };
Expand Down Expand Up @@ -50,7 +50,7 @@ ownership of the array:
.. code::

#include <cstddef>
#include <xtensor/xadapt.hpp>
#include <xtensor/containers/xadapt.hpp>

void compute(double* data, std::size_t size)
{
Expand Down Expand Up @@ -82,8 +82,8 @@ the ownership of the array, meaning it will be deleted when the adaptor is destr
.. code::

#include <cstddef>
#include <xtensor/xarray.hpp>
#include <xtensor/xadapt.hpp>
#include <xtensor/containers/xarray.hpp>
#include <xtensor/containers/xadapt.hpp>

void compute(double*& data, std::size_t size)
{
Expand Down Expand Up @@ -119,8 +119,8 @@ adaptor before calling ``compute`` and pass it to the function:
.. code::

#include <cstddef>
#include <xtensor/xarray.hpp>
#include <xtensor/xadapt.hpp>
#include <xtensor/containers/xarray.hpp>
#include <xtensor/containers/xadapt.hpp>

template <class A>
void compute(A& a)
Expand Down Expand Up @@ -154,8 +154,8 @@ Adapting C arrays allocated on the stack is as simple as adapting ``std::vector`

#include <cstddef>
#include <vector>
#include <xtensor/xarray.hpp>
#include <xtensor/xadapt.hpp>
#include <xtensor/containers/xarray.hpp>
#include <xtensor/containers/xadapt.hpp>

double v[6] = {1., 2., 3., 4., 5., 6. };
std::vector<std::size_t> shape = { 2, 3 };
Expand Down Expand Up @@ -185,8 +185,8 @@ It will automatically increment the reference count of shared pointers upon crea
.. code::

#include <memory>
#include <xtensor/xadapt.hpp>
#include <xtensor/xio.hpp>
#include <xtensor/containers/xadapt.hpp>
#include <xtensor/io/xio.hpp>

std::shared_ptr<double> sptr(new double[8], std::default_delete<double[]>());
sptr.get()[2] = 321.;
Expand All @@ -201,8 +201,8 @@ memory) as follows:
.. code::

#include <memory>
#include <xtensor/xadapt.hpp>
#include <xtensor/xio.hpp>
#include <xtensor/containers/xadapt.hpp>
#include <xtensor/io/xio.hpp>

struct Buffer {
Buffer(std::vector<double>& buf) : m_buf(buf) {}
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/accumulating_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Accumulating functions

**xtensor** provides the following accumulating functions for xexpressions:

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

.. doxygenfunction:: cumsum(E&&)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/basic_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Basic functions

**xtensor** provides the following basic functions for xexpressions and scalars:

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

.. doxygenfunction:: abs(E&&)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/classif_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Classification functions

**xtensor** provides the following classification functions for xexpressions and scalars:

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

.. doxygenfunction:: isfinite(E&&)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/error_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Error and gamma functions

**xtensor** provides the following error and gamma functions for xexpressions:

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

.. doxygenfunction:: erf(E&&)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/exponential_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Exponential functions

**xtensor** provides the following exponential functions for xexpressions:

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

.. doxygenfunction:: exp(E&&)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/hyperbolic_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Hyperbolic functions

**xtensor** provides the following hyperbolic functions for xexpressions:

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

.. _sinh-function-reference:
.. doxygenfunction:: sinh(E&&)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/index_related.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Index related functions
=======================

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

.. doxygenfunction:: where(const T&)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/nan_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ NaN functions

**xtensor** provides the following functions that deal with NaNs in xexpressions:

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

.. doxygenfunction:: nan_to_num(E&&)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/nearint_operations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Nearest integer floating point operations

**xtensor** provides the following rounding operations for xexpressions:

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

.. doxygenfunction:: ceil(E&&)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Operators and related functions
===============================

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

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

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/power_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Power functions

**xtensor** provides the following power functions for xexpressions and scalars:

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

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

Expand Down
4 changes: 2 additions & 2 deletions docs/source/api/reducing_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Reducing functions

**xtensor** provides the following reducing functions for xexpressions:

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

.. doxygenfunction:: sum(E&&, EVS)

Expand Down Expand Up @@ -49,7 +49,7 @@ Defined in ``xtensor/xmath.hpp``

.. doxygenfunction:: trapz(const xexpression<T>&, const xexpression<E>&, std::ptrdiff_t)

Defined in ``xtensor/xnorm.hpp``
Defined in ``xtensor/reducers/xnorm.hpp``

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

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/trigonometric_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Trigonometric functions

**xtensor** provides the following trigonometric functions for xexpressions and scalars:

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

.. doxygenfunction:: sin(E&&)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xaccumulator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xaccumulator
============

Defined in ``xtensor/xaccumulator.hpp``
Defined in ``xtensor/reducers/xaccumulator.hpp``

.. doxygenfunction:: xt::accumulate(F&&, E&&, EVS)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xadapt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xadapt
======

Defined in ``xtensor/xadapt.hpp``
Defined in ``xtensor/containers/xadapt.hpp``

.. cpp:namespace-push:: xt

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xarray.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xarray
======

Defined in ``xtensor/xarray.hpp``
Defined in ``xtensor/containers/xarray.hpp``

.. doxygenclass:: xt::xarray_container
:members:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xarray_adaptor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xarray_adaptor
==============

Defined in ``xtensor/xarray.hpp``
Defined in ``xtensor/containers/xarray.hpp``

.. doxygenclass:: xt::xarray_adaptor
:members:
2 changes: 1 addition & 1 deletion docs/source/api/xaxis_iterator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xaxis_iterator
==============

Defined in ``xtensor/xaxis_iterator.hpp``
Defined in ``xtensor/views/xaxis_iterator.hpp``

.. doxygenclass:: xt::xaxis_iterator
:members:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xaxis_slice_iterator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
xaxis_slice_iterator
====================

Defined in ``xtensor/xaxis_slice_iterator.hpp``
Defined in ``xtensor/views/xaxis_slice_iterator.hpp``

.. doxygenclass:: xt::xaxis_slice_iterator
:members:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xbroadcast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xbroadcast
==========

Defined in ``xtensor/xbroadcast.hpp``
Defined in ``xtensor/views/xbroadcast.hpp``

.. doxygenclass:: xt::xbroadcast
:members:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xbuilder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xbuilder
========

Defined in ``xtensor/xbuilder.hpp``
Defined in ``xtensor/generators/xbuilder.hpp``

.. doxygenfunction:: xt::ones(S)

Expand Down
6 changes: 3 additions & 3 deletions docs/source/api/xcontainer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
layout
======

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

.. doxygenenum:: xt::layout_type

Expand All @@ -16,15 +16,15 @@ Defined in ``xtensor/xlayout.hpp``
xcontainer
==========

Defined in ``xtensor/xcontainer.hpp``
Defined in ``xtensor/containers/xcontainer.hpp``

.. doxygenclass:: xt::xcontainer
:members:

xstrided_container
==================

Defined in ``xtensor/xcontainer.hpp``
Defined in ``xtensor/containers/xcontainer.hpp``

.. doxygenclass:: xt::xstrided_container
:members:
2 changes: 1 addition & 1 deletion docs/source/api/xcontainer_semantic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xcontainer_semantic
===================

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

.. doxygenclass:: xt::xcontainer_semantic
:members:
2 changes: 1 addition & 1 deletion docs/source/api/xcsv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xcsv: read/write CSV files
==========================

Defined in ``xtensor/xcsv.hpp``
Defined in ``xtensor/io/xcsv.hpp``

.. doxygenfunction:: xt::load_csv

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xexpression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xexpression
===========

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

.. doxygenclass:: xt::xexpression
:members:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xfixed.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xtensor_fixed
=============

Defined in ``xtensor/xfixed.hpp``
Defined in ``xtensor/containers/xfixed.hpp``

.. doxygenclass:: xt::xfixed_container
:members:
Expand Down
4 changes: 2 additions & 2 deletions docs/source/api/xfunction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
xfunction
=========

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

.. doxygenclass:: xt::xfunction
:members:

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

.. doxygenfunction:: make_lambda_xfunction
2 changes: 1 addition & 1 deletion docs/source/api/xgenerator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xgenerator
==========

Defined in ``xtensor/xgenerator.hpp``
Defined in ``xtensor/generators/xgenerator.hpp``

.. doxygenclass:: xt::xgenerator
:members:
2 changes: 1 addition & 1 deletion docs/source/api/xhistogram.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xhistogram
==========

Defined in ``xtensor/xhistogram.hpp``
Defined in ``xtensor/misc/xhistogram.hpp``

.. doxygenenum:: xt::histogram_algorithm

Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/xindex_view.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xindex_view
===========

Defined in ``xtensor/xindex_view.hpp``
Defined in ``xtensor/views/xindex_view.hpp``

.. doxygenclass:: xt::xindex_view
:members:
Expand Down
6 changes: 3 additions & 3 deletions docs/source/api/xio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
xio: pretty printing
====================

Defined in ``xtensor/xio.hpp``
Defined in ``xtensor/io/xio.hpp``

This file defines functions for pretty printing xexpressions. It defines appropriate
overloads for the ``<<`` operator for std::ostreams and xexpressions.

.. code::

#include <xtensor/xio.hpp>
#include <xtensor/xarray.hpp>
#include <xtensor/io/xio.hpp>
#include <xtensor/containers/xarray.hpp>

int main()
{
Expand Down
Loading