May 2020
Intermediate to advanced
530 pages
17h 8m
English
The xtensor library is a C++ library for numerical analysis with multidimensional array expressions. Containers of xtensor are inspired by NumPy, the Python array programming library. ML algorithms are mainly described using Python and NumPy, so this library can make it easier to move them to C++. The following container classes implement multidimensional arrays in the xtensor library.
The xarray type is a dynamically sized multidimensional array, as shown in the following code snippet:
std::vector<size_t> shape = { 3, 2, 4 };xt::xarray<double, xt::layout_type::row_major> a(shape);
The xtensor type is a multidimensional array whose dimensions are fixed at compilation time. Exact dimension values can be configured in the initialization ...
Read now
Unlock full access