Releases: mjziebarth/Cyantities
Releases · mjziebarth/Cyantities
Version 0.6.0
[0.6.0] - 2025-06-18
Added
- Add
zerosfactory function forQuantity(Cython only)
Version 0.5.0
[0.5.0] - 2024-09-22
Added
- Support for
dtypeandcopyparameters inQuantity._array. - Added typing stubs for
UnitandQuantity.
Changed
- Remove use of deprecated
numpy.arraywithcopy=False. - Removed internal inconsistency in how scalar and array-valued Quantities
were handled in theQuantity.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
[0.4.0] - 2024-08-12
Added
- Indexing of matrix-valued
Quantityinstances. - Absolute for
Quantityinstance.
Version 0.3.0
[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
Quantitywith dimension larger than one causing
runtime errors. - Use
_val_objectinstead of_val_arrayto obtainNDArraystring
representation. - Fix
convfactor not honored when callingUnit(dec_exp, conv)constructor. - Remove the internal
_val_arrayfield entirely due to its (apparent?)
inability to handle variable dimension.
Version 0.2.1
[0.2.1] - 2024-08-04
Changed
- Fix check in
Quantitynot considering integers as valid scalars.
Version 0.2.0
[0.2.0] - 2024-08-04
Added
- Add
shapemethod forQuantity, which allows to query the (array-) shape
of the underlying data.
Version 0.1.0
[0.1.0] - 2024-05-05
Added
- Add
zeros_likegenerator function forQuantity(Cython only) - Add the
iter()andconst_iter()templated methods to C++
QuantityWrapperclass, allowing for the use of range-based for loops and
range adaptor closures (|-operator syntax) in compile-time provided units. - Add the
gravityexample that showcases different methods to iterate
vector-valued quantities in C++. - Add benchmark for different iteration methods.
v0.0.3
[0.0.3] - 2024-04-24
Changed
- Fixed the installation requirements and source distribution manifest.
- Add version coherence test script.
Version 0.0.2
[0.0.2] - 2024-04-23
Changed
- First release