xtensor/0.25.0

C++ tensors with broadcasting and lazy computing
Recipe info
2024-01-28

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
xtensor/0.25.0

Using xtensor

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
xtensor/0.25.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("xtensor/0.25.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): xtensor
  • CMake target name(s): xtensor
  • pkg-config file name(s): xtensor.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(xtensor REQUIRED)
# ...
target_link_libraries(YOUR_TARGET xtensor)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the xtensor homepage listed above:

#include "xtensor/xaccessible.hpp"
#include "xtensor/xaccumulator.hpp"
#include "xtensor/xadapt.hpp"
#include "xtensor/xarray.hpp"
#include "xtensor/xassign.hpp"
#include "xtensor/xaxis_iterator.hpp"
#include "xtensor/xaxis_slice_iterator.hpp"
#include "xtensor/xblockwise_reducer.hpp"
#include "xtensor/xblockwise_reducer_functors.hpp"
#include "xtensor/xbroadcast.hpp"
#include "xtensor/xbuffer_adaptor.hpp"
#include "xtensor/xbuilder.hpp"
#include "xtensor/xchunked_array.hpp"
#include "xtensor/xchunked_assign.hpp"
#include "xtensor/xchunked_view.hpp"
#include "xtensor/xcomplex.hpp"
#include "xtensor/xcontainer.hpp"
#include "xtensor/xcsv.hpp"
#include "xtensor/xdynamic_view.hpp"
#include "xtensor/xeval.hpp"
#include "xtensor/xexception.hpp"
#include "xtensor/xexpression.hpp"
#include "xtensor/xexpression_holder.hpp"
#include "xtensor/xexpression_traits.hpp"
#include "xtensor/xfixed.hpp"
#include "xtensor/xfunction.hpp"
#include "xtensor/xfunctor_view.hpp"
#include "xtensor/xgenerator.hpp"
#include "xtensor/xhistogram.hpp"
#include "xtensor/xindex_view.hpp"
#include "xtensor/xinfo.hpp"
#include "xtensor/xio.hpp"
#include "xtensor/xiterable.hpp"
#include "xtensor/xiterator.hpp"
#include "xtensor/xjson.hpp"
#include "xtensor/xlayout.hpp"
#include "xtensor/xmanipulation.hpp"
#include "xtensor/xmasked_view.hpp"
#include "xtensor/xmath.hpp"
#include "xtensor/xmime.hpp"
#include "xtensor/xmultiindex_iterator.hpp"
#include "xtensor/xnoalias.hpp"
#include "xtensor/xnorm.hpp"
#include "xtensor/xnpy.hpp"
#include "xtensor/xoffset_view.hpp"
#include "xtensor/xoperation.hpp"
#include "xtensor/xoptional.hpp"
#include "xtensor/xoptional_assembly.hpp"
#include "xtensor/xoptional_assembly_base.hpp"
#include "xtensor/xoptional_assembly_storage.hpp"
#include "xtensor/xpad.hpp"
#include "xtensor/xrandom.hpp"
#include "xtensor/xreducer.hpp"
#include "xtensor/xrepeat.hpp"
#include "xtensor/xscalar.hpp"
#include "xtensor/xsemantic.hpp"
#include "xtensor/xset_operation.hpp"
#include "xtensor/xshape.hpp"
#include "xtensor/xslice.hpp"
#include "xtensor/xsort.hpp"
#include "xtensor/xstorage.hpp"
#include "xtensor/xstrided_view.hpp"
#include "xtensor/xstrided_view_base.hpp"
#include "xtensor/xstrides.hpp"
#include "xtensor/xtensor.hpp"
#include "xtensor/xtensor_config.hpp"
#include "xtensor/xtensor_forward.hpp"
#include "xtensor/xtensor_simd.hpp"
#include "xtensor/xutils.hpp"
#include "xtensor/xvectorize.hpp"
#include "xtensor/xview.hpp"
#include "xtensor/xview_utils.hpp"