Skip to content

The 'free of all dependency' release

Latest

Choose a tag to compare

@sebsjames sebsjames released this 24 Nov 10:16
· 3 commits to main since this release
3652af0

With this release, sebsjames/maths now depends only on the C++ standard library! This makes it much cleaner to use this repository as a library of modules - there is no additional linking or submoduling required.

The JSON and HDF related code has been moved into companion repositories: sebsjames/maths_hdf and sebsjames/maths_config. When I need to read configuration information from a JSON file, I'll use maths_config, which provides sm::config, which has the dependency on nlohmann::json. When I want to save data structures into Hierarchical Data Format, I can similarly use maths_hdf, which brings a linking dependency on libhdf.

The release adds a number of enhancements to sm::hexgrid including the ability to gracefully deal with data that contains infinities. sm::scale now ignores infinities when calculating transformations. You can also 'down-size' your hexgrids with algo::hexgrid::reduced_hexgrid.

The release also adds a bugfix in sm::winder and fast multiply/accumulate methods in vec and vvec.

Finally, the library now has a more extensive dynamically resizable matrix library in sm::vmat. This doesn't incorporate all of the code in sm::mat, but it has enough to allow us to compute the Eigenvectors of a matrix in aid of cublic spline fitting and the matrix operations in Bezier curve fitting.

Note that sm::mat has one breaking change in this release, which is that a default-constructed mat is now always null-initialized (before, a square mat would initialize as the identity matrix).

What's Changed

Full Changelog: 3.2...3.3