Releases: mjziebarth/Cyantities
Releases · mjziebarth/Cyantities
Version 0.5.0
[0.5.0] - 2024-09-22
Added
- Support for
dtype
andcopy
parameters inQuantity._array
. - Added typing stubs for
Unit
andQuantity
.
Changed
- Remove use of deprecated
numpy.array
withcopy=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
Quantity
instances. - Absolute for
Quantity
instance.
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
Quantity
with dimension larger than one causing
runtime errors. - Use
_val_object
instead of_val_array
to obtainNDArray
string
representation. - Fix
conv
factor not honored when callingUnit(dec_exp, conv)
constructor. - Remove the internal
_val_array
field entirely due to its (apparent?)
inability to handle variable dimension.
Version 0.2.1
[0.2.1] - 2024-08-04
Changed
- Fix check in
Quantity
not considering integers as valid scalars.
Version 0.2.0
[0.2.0] - 2024-08-04
Added
- Add
shape
method 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_like
generator function forQuantity
(Cython only) - Add the
iter()
andconst_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
[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