Changelog#
All notable changes to metatensor-core are documented here, following the keep a changelog format. This project follows Semantic Versioning.
Unreleased#
metatensor-core C++#
metatensor-core C#
metatensor-core Python#
metatensor-core Julia#
Added#
the Julia bindings to metatensor-core in the Metatensor.jl package
Version 0.1.2 - 2024-01-26#
metatensor-core C++#
Added#
Offer serialization functionality as free standing functions (i.e.
metatensor::io::load) in addition to the existing associated functions (i.e.TensorMap::load) (#453)Serialization of labels with
Labels::save,Labels::load,Labels::save_buffer,Labels::load_bufferand the corresponding free functions. (#455)
Changed#
TensorMap::save_string_bufferhas been replaced with the template version ofTensorMap::save_buffer
metatensor-core C#
Added#
mts_labels_save,mts_labels_load,mts_labels_save_buffer, andmts_labels_load_bufferto handle serialization ofmts_labels_t
metatensor-core Python#
Added#
TensorMap.toandTensorBlock.toto change the device, dtype, or backend (numpy or torch) of all arrays stored by metatensorLabels.device,TensorBlock.deviceandTensorMap.device; as well asTensorMap.dtype, andTensorBlock.dtypeto query the current device and dtype used by the data.Offer serialization functionality as member functions (i.e.
TensorMap.load) in addition to the existing free standing functions (i.e.metatensor.load) (#453)Serialization of labels with
Labels.save,Labels.load,Labels.save_buffer,Labels.load_bufferand the corresponding free functions.
Version 0.1.1 - 2024-01-05#
Fixed#
Fixed the build with Cargo 1.75 (#438)
Allowed saving and loading empty TensorMap; i.e. TensorMap where one of the dimensions of the array has 0 elements (#419)
Version 0.1.0 - 2023-10-11#
metatensor-core C#
Added#
Initial implementation of all the core classes of metatensor:
mts_labels_t,mts_block_t,mts_tensormap_t,mts_array_tand the corresponding functions;Serialization for
mts_tensormap_tusing a format derived from numpy’s npz format
metatensor-core C++#
Added#
C++ API for all the C data structures as C++ classes:
Labels,TensorBlock,TensorMap;Wrapper around
mts_array_tas an abstract base classDataArrayBase;Basic implementations of
DataArrayBaseinSimpleDataArrayandEmptyDataArray;Basic n-dimensional array class
NDArray<T>, intended to give a minimal API to use data stored inTensorBlockeven if this data does not come from C++ initially;
metatensor-core Python#
Added#
Python API for all the C data structures as Python classes:
Labels,LabelsEntry,TensorBlock,TensorMap;Wrapper around
mts_array_tas an abstract base classmetatensor.data.Array;Implementation of
metatensor.data.Arraywithnumpy.ndarrayandtorch.Tensor;