Changelog

0.15.0 (unreleased)

Breaking changes

  • change reshape to resize, and add throwing reshape #598.
  • moved to modern cmake #611.

New features

  • unravel function #589.
  • random access iterators #596.

Other changes

  • upgraded to google/benchmark version 1.3.0 #583.
  • XTENSOR_ASSERT renamed into XTENSOR_TRY, new XTENSOR_ASSERT #603.
  • adapt fixed #604.
  • VC14 warnings removed #608.
  • xfunctor_iterator is now a random access iterator #609.
  • removed old-style-cast warnings #610.

0.14.1

New features

  • sort, argmin and argmax #549.
  • xscalar_expression_tag #582.

Other changes

  • accumulator improvements #570.
  • benchmark cmake fixed #571.
  • allocator_type added to container interface #573.
  • allow conda-forge as fallback channel #575.
  • arithmetic mixing optional assemblies and scalars fixed #578.
  • arithmetic mixing optional assemblies and optionals fixed #579.
  • operator== restricted to xtensor and xoptional expressions #580.

0.14.0

Breaking changes

  • xadapt renamed into adapt #563.
  • Naming consistency #565.

New features

  • add random::choice #547.
  • evaluation strategy and accumulators. #550.
  • modulus operator #556.
  • adapt: default overload for 1D arrays #560.
  • Move semantic on adapt #564.

Other changes

  • optional fixes to avoid ambiguous calls #541.
  • narrative documentation about xt::adapt #544.
  • xfunction refactoring #545.
  • SIMD acceleration for AVX fixed #557.
  • allocator fixes #558. #559.
  • return type of view::strides() fixed #568.

0.13.2

0.13.1

  • More general floating point type #518.
  • Do not require functor to be passed via rvalue reference #519.
  • Documentation improved #520.
  • Fix in xreducer #521.

0.13.0

Breaking changes

  • The API for xbuffer_adaptor has changed. The template parameter is the type of the buffer, not just the value type #482.
  • Change edge_items print option to edgeitems for better numpy consistency #489.
  • xtensor now depends on xtl version ~0.3.3 #508.

New features

  • Support for parsing the npy file format #465.
  • Creation of optional expressions from value and boolean expressions (optional assembly) #496.
  • Support for the explicit cast of expressions with different value types #491.

Other changes

  • Addition of broadcasting bitwise operators #459.
  • More efficient optional expression system #467.
  • Migration of benchmarks to the Google benchmark framework #473.
  • Container semantic and adaptor semantic merged #475.
  • Various fixes and improvements of the strided views #480. #481.
  • Assignment now performs basic type conversion #486.
  • Workaround for a compiler bug in Visual Studio 2017 #490.
  • MSVC 2017 workaround #492.
  • The size() method for containers now returns the total number of elements instead of the buffer size, which may differ when the smallest stride is greater than 1 #502.
  • The behavior of linspace with integral types has been made consistent with numpy #510.

0.12.1

  • Fix issue with slicing when using heterogeneous integral types #451.

0.12.0

Breaking changes

  • xtensor now depends on xtl version 0.2.x #421.

New features

  • xtensor has an optional dependency on xsimd for enabling simd acceleration #426.
  • All expressions have an additional safe access function (at) #420.
  • norm functions #440.
  • closure_pointer used in iterators returning temporaries so their operator-> can be correctly defined #446.
  • expressions tags added so xtensor expression system can be extended #447.

Other changes

  • Preconditions and exceptions #409.
  • isclose is now symmetric #411.
  • concepts added #414.
  • narrowing cast for mixed arithmetic #432.
  • is_xexpression concept fixed #439.
  • void_t implementation fixed for compilers affected by C++14 defect CWG 1558 #448.

0.11.3

  • Fixed bug in length-1 statically dimensioned tensor construction #431.

0.11.2

  • Fixup compilation issue with latest clang compiler. (missing constexpr keyword) #407.

0.11.1

  • Fixes some warnings in julia and python bindings

0.11.0

Breaking changes

  • xbegin / xend, xcbegin / xcend, xrbegin / xrend and xcrbegin / xcrend methods replaced with classical begin / end, cbegin / cend, rbegin / rend and crbegin / crend methods. Old begin / end methods and their variants have been removed. #370.
  • xview now uses a const stepper when its underlying expression is const. #385.

Other changes

  • xview copy semantic and move semantic fixed. #377.
  • xoptional can be implicitly constructed from a scalar. #382.
  • build with Emscripten fixed. #388.
  • STL version detection improved. #396.
  • Implicit conversion between signed and unsigned integers fixed. #397.