Changelog

0.18.0

Breaking changes

  • Moved array manipulation functions (transpose, ravel, flatten, trim_zeros, squeeze, expand_dims, split, atleast_Nd, atleast_1d, atleast_2d, atleast_3d, flip) from xstrided_view.hpp to xmanipulation.hpp #1153.
  • Fixed where and nonzero function behavior to mimic the behavior from NumPy #1157.

New features

  • Implement rot90 #1153.
  • Implement argwhere and flatnonzero #1157.

0.17.4

  • perfect forwarding in xoptional_function constructor #1101.
  • fix issue with base_simd #1103.
  • XTENSOR_ASSERT fixed on Windows #1104.
  • Implement xmasked_value #1032.
  • Added setdiff1d using stl interface #1109.
  • Added test case for setdiff1d #1110.
  • Added missing reference to diff in From numpy to xtensor section #1116.
  • Add amax and amin to the documentation #1121.
  • histogram and histogram_bin_edges implementation #1108.
  • Added numpy comparison for interp #1111.
  • Allow multiple return type reducer functions #1113.
  • Fixes average bug + adds Numpy based tests #1118.
  • Static xfunction cache for fixed sizes #1105.
  • Add negative reshaping axis #1120.
  • Updated xmasked_view using xmasked_value #1074.
  • Clean documentation for views #1131.
  • Build with xsimd on Windows fixed #1127.
  • Implement mime_bundle_repr for xmasked_view #1132.
  • Modify shuffle to use identical algorithms for any number of dimensions #1135.
  • Warnings removal on windows #1139.
  • Add permutation function to random #1141.
  • xfunction_iterator permutation #933.
  • Add bincount to xhistogram #1140.
  • Add contiguous iterable base class and remove layout param from storage iterator #1057.
  • Add storage_iterator to view and strided view #1045.
  • Removes data_element from xoptional #1137.
  • xtensor default constructor and scalar assign fixed #1148.
  • Add resize / reshape to xfixed_container #1147.
  • Iterable refactoring #1149.
  • inner_strides_type imported in xstrided_view #1151.

0.17.3

  • xslice fix #1099.
  • added missing static_layout in xmasked_view #1100.

0.17.2

  • Add experimental TBB support for parallelized multicore assign #948.
  • Add inline statement to all functions in xnpy #1097.
  • Fix strided assign for certain assignments #1095.
  • CMake, remove gtest warnings #1085.
  • Add conversion operators to slices #1093.
  • Add optimization to unchecked accessors when contiguous layout is known #1060.
  • Speedup assign by computing any layout on vectors #1063.
  • Skip resizing for fixed shapes #1072.
  • Add xsimd apply to xcomplex functors (conj, norm, arg) #1086.
  • Propagate contiguous layout through views #1039.
  • Fix C++17 ambiguity for GCC 7 #1081.
  • Correct shape type in argmin, fix svector growth #1079.
  • Add interp function to xmath #1071.
  • Fix valgrind warnings + memory leak in xadapt #1078.
  • Remove more clang warnings & errors on OS X #1077.
  • Add move constructor from xtensor <-> xarray #1051.
  • Add global support for negative axes in reducers/accumulators allow multiple axes in average #1010.
  • Fix reference usage in xio #1076.
  • Remove occurences of std::size_t and double #1073.
  • Add missing parantheses around min/max for MSVC #1061.

0.17.1

  • Add std namespace to size_t everywhere, remove std::copysign for MSVC #1053.
  • Fix (wrong) bracket warnings for older clang versions (e.g. clang 5 on OS X) #1050.
  • Fix strided view on view by using std::addressof #1049.
  • Add more adapt functions and shorthands #1043.
  • Improve CRTP base class detection #1041.
  • Fix rebind container ambiguous template for C++17 / GCC 8 regression #1038.
  • Fix functor return value #1035.

0.17.0

Breaking changes

  • Changed strides to std::ptrdiff_t #925.
  • Renamed count_nonzeros in count_nonzero #974.
  • homogenize xfixed constructors #970.
  • Improve random::choice #1011.

New features

  • add signed char to npy deserialization format #1017.
  • simd assignment now requires convertible types instead of same type #1000.
  • shared expression and automatic xclosure detection #992.
  • average function #987.
  • added simd support for complex #985.
  • argsort function #977.
  • propagate fixed shape #922.
  • added xdrop_slice #972.
  • added doc for xmasked_view #971.
  • added xmasked_view #969.
  • added dynamic_view #966.
  • added ability to use negative indices in keep slice #964.
  • added an easy way to create lambda expressions, square and cube #961.
  • noalias on rvalue #965.

Other changes

  • xshared_expression fixed #1025.
  • fix make_xshared #1024.
  • add tests to evaluate shared expressions #1019.
  • fix where on xview #1012.
  • basic usage replaced with getting started #1004.
  • avoided installation failure in absence of nlohmann_json #1001.
  • code and documentation clean up #998.
  • removed g++ “pedantic” compiler warnings #997.
  • added missing header in basic_usage.rst #996.
  • warning pass #990.
  • added missing include in xview #989.
  • added missing <map> include #983.
  • xislice refactoring #962.
  • added missing operators to noalias #932.
  • cmake fix for Intel compiler on Windows #951.
  • fixed xsimd abs deduction #946.
  • added islice example to view doc #940.

0.16.4

  • removed usage of std::transfomr in assign #868.
  • add strided assignment #901.
  • simd activated for conditional ternary functor #903.
  • xstrided_view split #905.
  • assigning an expression to a view throws if it has more dimensions #910.
  • faster random #913.
  • xoptional_assembly_base storage type #915.
  • new tests and warning pass #916.
  • norm immediate reducer #924.
  • add reshape_view #927.
  • fix immediate reducers with 0 strides #935.

0.16.3

  • simd on mathematical functions fixed #886.
  • fill method added to containers #887.
  • access with more arguments than dimensions #889.
  • unchecked method implemented #890.
  • fill method implemented in view #893.
  • documentation fixed and warnings removed #894.
  • negative slices and new range syntax #895.
  • xview_stepper with implicit xt::all bug fix #899.

0.16.2

  • Add include of xview.hpp in example #884.
  • Remove FS identifier #885.

0.16.1

  • Workaround for Visual Studio Bug #858.
  • Fixup example notebook #861.
  • Prevent expansion of min and max macros on Windows #863.
  • Renamed m_data to m_storage #864.
  • Fix regression with respect to random access stepping with views #865.
  • Remove use of CS, DS and ES qualifiers for Solaris builds #866.
  • Removal of precision type #870.
  • Make json tests optional, bump xtl/xsimd versions #871.
  • Add more benchmarks #876.
  • Forbid simd fixed #877.
  • Add more asserts #879.
  • Add missing batch_bool typedef #881.
  • simd_return_type hack removed #882.
  • Removed test guard and fixed dimension check in xscalar #883.

0.16.0

Breaking changes

  • data renamed in storage, raw_data renamed in data #792.
  • Added layout template parameter to xstrided_view #796.
  • Remove equality operator from stepper #824.
  • dynamic_view renamed in strided_view #832.
  • xtensorf renamed in xtensor_fixed #846.

New features

  • Added strided view selector #765.
  • Added count_nonzeros #781.
  • Added implicit conversion to scalar in xview #788.
  • Added tracking allocators to xutils.hpp #789.
  • xindexslice and shuffle function #804.
  • Allow xadapt with dynamic layout #816.
  • Added xtensorf initialization from C array #819.
  • Added policy to allocation tracking for throw option #820.
  • Free function empty for construction from shape #827.
  • Support for JSON serialization and deserialization of xtensor expressions #830.
  • Add trapz function #837.
  • Add diff and trapz(y, x) functions #841.

Other changes

  • Added fast path for specific assigns #767.
  • Renamed internal macros to prevent collisions #772.
  • dynamic_view unwrapping #775.
  • xreducer_stepper copy semantic fixed #785.
  • xfunction copy constructor fixed #787.
  • warnings removed #791.
  • xscalar_stepper fixed #802.
  • Fixup xadapt on const pointers #809.
  • Fix in owning buffer adaptors #810.
  • Macros fixup #812.
  • More fixes in xadapt #813.
  • Mute unused variable warning #815.
  • Remove comparison of steppers in assign loop #823.
  • Fix reverse iterators #825.
  • gcc-8 fix for template method calls #833.
  • refactor benchmarks for upcoming release #842.
  • flip now returns a view #843.
  • initial warning pass #850.
  • Fix warning on diff function #851.
  • xsimd assignment fixed #852.

0.15.9

  • missing layout method in xfixed #777.
  • fixed uninitialized backstrides #774.
  • update xtensor-blas in binder #773.

0.15.8

  • comparison operators for slices #770.
  • use default-assignable layout for strided views. #769.

0.15.7

  • nan related functions #718.
  • return types fixed in dynamic view helper #722.
  • xview on constant expressions #723.
  • added decays to make const value_type compile #727.
  • iterator for constant strided_view fixed #729.
  • strided_view on xfunction fixed #732.
  • Fixes in xstrided_view #736.
  • View semantic (broadcast on assign) fixed #742.
  • Compilation prevented when using ellipsis with xview #743.
  • Index of xiterator set to shape when reaching the end #744.
  • xscalar fixed #748.
  • Updated README and related projects #749.
  • Perfect forwarding in xfunction and views #750.
  • Missing include in xassign.hpp #752.
  • More related projects in the README #754.
  • Fixed stride computation for xtensorf #755.
  • Added tests for backstrides #758.
  • Clean up has_raw_data ins strided view #759.
  • Switch to ptrdiff_t for slices #760.
  • Fixed xview strides computation #762.
  • Additional methods in slices, required for xframe #764.

0.15.6

  • zeros, ones, full and empty_like functions #686.
  • squeeze view #687.
  • bitwise shift left and shift right #688.
  • ellipsis, unique and trim functions #689.
  • xview iterator benchmark #696.
  • optimize stepper increment #697.
  • minmax reducers #698.
  • where fix with SIMD #704.
  • additional doc for scalars and views #705.
  • mixed arithmetic with SIMD #713.
  • broadcast fixed #717.

0.15.5

  • assign functions optimized #650.
  • transposed view fixed #652.
  • exceptions refactoring #654.
  • performances improved #655.
  • view data accessor fixed #660.
  • new dynamic view using variant #656.
  • alignment added to fixed xtensor #659.
  • code cleanup #664.
  • xtensorf and new dynamic view documentation #667.
  • qualify namespace for compute_size #665.
  • make xio use dynamic_view instead of view #662.
  • transposed view on any expression #671.
  • docs typos and grammar plus formatting #676.
  • index view test assertion fixed #680.
  • flatten view #678.
  • handle the case of pointers to const element in xadapt #679.
  • use quotes in #include statements for xtl #681.
  • additional constructors for svector #682.
  • removed test_xsemantics.hpp from test CMakeLists #684.

0.15.4

  • fix gcc-7 error w.r.t. the use of assert #648.

0.15.3

  • add missing headers to cmake installation and tests #647.

0.15.2

  • xshape implementation #572.
  • xfixed container #586.
  • protected xcontainer::derived_cast #627.
  • const reference fix #632.
  • xgenerator access operators fixed #643.
  • contiguous layout optiimzation #645.

0.15.1

  • xarray_adaptor fixed #618.
  • xtensor_adaptor fixed #620.
  • fix in xreducer steppers #622.
  • documentation improved #621. #623. #625.
  • warnings removed #624.

0.15.0

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

  • Support for complex version of isclose #512.
  • Fixup static layout in xstrided_view #536.
  • xexpression::operator[] now take support any type of sequence #537.
  • Fixing xinfo issues for Visual Studio. #529.
  • Fix const-correctness in xstrided_view. #526.

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.