Converters between Armadillo matrices (C++) and Numpy arrays using Pybind11
APACHE-2.0 License
Bot releases are hidden (Show)
Full Changelog: https://github.com/RUrlus/carma/compare/v0.7.0...v0.8.0
Published by RUrlus 7 months ago
Full Changelog: https://github.com/RUrlus/carma/compare/v0.6.7...v0.7.0
Published by RUrlus over 1 year ago
Full Changelog: https://github.com/RUrlus/carma/compare/v0.6.6...v0.6.7
Published by RUrlus over 2 years ago
Published by RUrlus over 2 years ago
Patch release that mainly updates dependency versions.
Published by RUrlus almost 3 years ago
Published by RUrlus almost 3 years ago
Published by RUrlus about 3 years ago
Published by RUrlus about 3 years ago
FIND_PACKAGE(carma CONFIG)
(#81, #82)to_numpy_view
a read-only view on ArmaT as non-writeable arrayPublished by RUrlus over 3 years ago
Closes #79 where internal header had wrong relative include path after installation.
Published by RUrlus over 3 years ago
Published by RUrlus over 3 years ago
New release of CARMA that has better interoperability with Armadillo.
The wrappers round Numpy's (de)allocator that were used in the forked version of Armadillo have been moved to CARMA.
This header is pre-compiled to remove any include order dependency between CARMA and Armadillo
Published by RUrlus over 3 years ago
Release 0.4.0 features almost complete rewrite of CARMA and can be considered the release candidate for 1.0.0.
Note this release is breaking but fixes a number of underlying issues in the old versions
carma
The nested structure in the include directory has been flattened. Users only require #include carma
rather than carma/carma.h
Previous versions were not always able to correctly take ownership of the memory underlying Armadillo objects.
This has been resolved with the new version.
The update functions have been removed as they no longer fit in the design pattern and were quite fragile.
Borrowed arrays no longer need update as they have strict parameter enforced. Stolen or copied arrays can be safely returned.
arr_to_*
has been removedThe new behaviour sets the auxiliary memory for Armadillo objects to strict
when borrowing and not when copying or stealing the memory.
On the conversion from Numpy to Armadillo we copy arrays that are not well-behaved to a well-behaved array and swap it in the place of the input array
v0.4.0 requires a fork of Armadillo that provides the Numpy allocator/de-allocator, we support Armadillo v1.14.x and v1.15.x
See build documentation for details.
arr_to_*_view
The view functions returns a constant Armadillo object based on a const input that does not require writeable memory.
arr_to_*
We now provide const &
, &
, &&
overloads for arr_to_*
and to_arma
*_to_arr
and to_numpy
We now provide const &
, &
, &&
overloads for *_to_arr
and to_numpy
Published by RUrlus over 4 years ago
A bug existed where the memory was deallocated with free
rather than the deallocator matching the allocator.
Armadillo and Pybind11 are no longer shipped with CARMA in the test directory but have been included as submodules.
This enables CARMA to be used in an existing project with different versions that included as submodules.
All source files have been formatted using clang format.
Multiple typos have been correct in the comments and tests.
This change has no influence on API.
Published by RUrlus over 4 years ago
writeable
A class for holding the memory of a Numpy array as an Armadillo matrix in C++ and creating views on the memory as Numpy arrays.
An example use-case would be a C++ class that does not return all data computed, say a Hessian, but should do so on request.
The memory of the views is tied to lifetime of the class.
Published by RUrlus over 4 years ago
Published by RUrlus over 4 years ago
Patch release of Carma
Changes:
Published by RUrlus over 4 years ago