Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* More homegeneous structure for * and / for Taylor1 and TaylorN Among others, mulHomogCoeff -> mul! and divHomogCoeff -> div!, and internal changes. * Fix getindex for Taylor1 and TaylorN and get rid of fixorder in * and / Also introduce div! for TaylorN polynomials * Fix an evaluate method and remove fixorder fixorder is not needed anymore since getindex was fixed and returns zero of appropriate type whenever the requested coefficient is well inside the maximum order, but not defined as such. * Use Base.power_by_squaring instead of defining more methods * Metaprogramming for * and mul!, and cleanup code * Refactor ^, square and sqrt and related functions for homogeneous coefficients The following functions for the homogeneous coefficients have been renamed: powerHomogCoef -> pow!, squareHomogCoef -> sqr!, sqrtHomogCoef -> sqrt! * Metaprogramming for the elementary functions and recurrence relations This allows a more smooth approach for Taylor1 and TaylorN functions. * Some metaprogramming in other_functions.jl * Adapt docs/src/api.md to changes in the naming of functions * Fix two tests * Add `add!` and `subst!` for completeness, and tests * Add methods for zero and one and metaprogramming for auxiliary functions * Add constant_term and max_order, and reduce repeated code * Add zero_korder and reduce code duplication Also, eliminate an unused function (fdot) in src/other_functions * Address comments pointed out in code review, and rename reverse -> inverse Some tests have been modified to reflect current functionality. * Add tests related to new functions, some docstrings, and update api.md * Improve memory allocation mainly for TaylorN using mul! * Two more small changes * Add more tests for TaylorN
- Loading branch information