Skip to content

Releases: mjziebarth/Cyantities

Version 0.5.0

22 Sep 17:26
Compare
Choose a tag to compare

[0.5.0] - 2024-09-22

Added

  • Support for dtype and copy parameters in Quantity._array.
  • Added typing stubs for Unit and Quantity.

Changed

  • Remove use of deprecated numpy.array with copy=False.
  • Removed internal inconsistency in how scalar and array-valued Quantities
    were handled in the Quantity.wrapper() routine. Now, scalar-valued
    quantities can similarly be filled from the C++ side.
  • Prevent NumPy from creating an object array on left-hand multiplication
    by setting __array_ufunc__ = None.

Version 0.4.0

12 Aug 21:23
Compare
Choose a tag to compare

[0.4.0] - 2024-08-12

Added

  • Indexing of matrix-valued Quantity instances.
  • Absolute for Quantity instance.

Version 0.3.0

11 Aug 13:32
Compare
Choose a tag to compare

[0.3.0] - 2024-08-11

Added

  • Add computation of unit powers in C++ and Python.
  • Add unary negation operator to Quantity.

Changed

  • Fix array values of Quantity with dimension larger than one causing
    runtime errors.
  • Use _val_object instead of _val_array to obtain NDArray string
    representation.
  • Fix conv factor not honored when calling Unit(dec_exp, conv) constructor.
  • Remove the internal _val_array field entirely due to its (apparent?)
    inability to handle variable dimension.

Version 0.2.1

04 Aug 20:47
Compare
Choose a tag to compare

[0.2.1] - 2024-08-04

Changed

  • Fix check in Quantity not considering integers as valid scalars.

Version 0.2.0

04 Aug 19:05
Compare
Choose a tag to compare

[0.2.0] - 2024-08-04

Added

  • Add shape method for Quantity, which allows to query the (array-) shape
    of the underlying data.

Version 0.1.0

05 May 12:43
Compare
Choose a tag to compare

[0.1.0] - 2024-05-05

Added

  • Add zeros_like generator function for Quantity (Cython only)
  • Add the iter() and const_iter() templated methods to C++
    QuantityWrapper class, allowing for the use of range-based for loops and
    range adaptor closures (|-operator syntax) in compile-time provided units.
  • Add the gravity example that showcases different methods to iterate
    vector-valued quantities in C++.
  • Add benchmark for different iteration methods.

v0.0.3

24 Apr 19:26
Compare
Choose a tag to compare

[0.0.3] - 2024-04-24

Changed

  • Fixed the installation requirements and source distribution manifest.
  • Add version coherence test script.

Version 0.0.2

23 Apr 21:51
Compare
Choose a tag to compare

[0.0.2] - 2024-04-23

Changed

  • First release