Implemented cubic spline; refactoring; various improvements #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Types of changes
Related: #6
Description
Implemented
CubicSplinewith types: "Natural", "Not-a-knot", "Periodic", "Not-a-knot start", "Not-a-knot end", "Semi-not-a-knot".Added types for
QuadraticSpline: "Semi-natural", "Semi-knot-a-knot", "Semi-semi".Moved the coefficient calculation for linear, quadratic, and cubic splines into separate functions.
Split utilities into separate files and placed them in the "util" folder.
Added
alfi::util::linalg::linsolvefunction for solving linear systems using LUP decomposition.Added tests for cubic spline.
Added
-fsanitize=addressoption to unit tests.Replaced
size_twithalfi::SizeT, defined by theALFI_SITE_TYPEmacro (defaults tosize_t).Updated
ALFI_DEFAULT_CONTAINERto define a template name instead of a type name.Replaced template data types with
autoin all functions.Added new CMake build profiles:
RelWithDebInfo,MinSizeRel, andFast.Added compiler options configuration for each profile in CMake.