Skip to content

Commit

Permalink
Further reduction of allocs in mutating methods for mixtures (#349)
Browse files Browse the repository at this point in the history
* Try suggestion by @lbenet

* Use in-place mul!

* Try further allocation reduction

* Reduce allocations in sqr!

* Remove some allocations in pow! for TaylorN and div! for Taylor1{TaylorN{T}}

* WIP: redo sqrt!

* WIP: avoid allocations in mixture methods for sqrt!

* WIP: avoid allocations in sqrt! for Taylor1{TaylorN{T}}

* Address some comments by @lbenet

* WIP: allocate less in pow!

* Update comment

* Reduce allocs of methods in src/functions.jl

* Fix identity! and add comments

* Allocate less in asin!, acos! for mixtures

* Add mul_scalar!

* Add missing docs

* Add div_scalar!

* Allocate less in acos!

* Less allocations in asin!, acos!

* Address review by @lbenet

* Add suggestions by @lbenet

* Get rid of some allocations in pow!

* Bump patch version

* More if <-> for fixes
  • Loading branch information
PerezHz authored Mar 10, 2024
1 parent a596f6b commit b9303b5
Show file tree
Hide file tree
Showing 5 changed files with 625 additions and 370 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TaylorSeries"
uuid = "6aa5eb33-94cf-58f4-a9d0-e4b2c4fc25ea"
repo = "https://github.com/JuliaDiff/TaylorSeries.jl.git"
version = "0.17.0"
version = "0.17.1"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
1 change: 1 addition & 0 deletions docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ resize_coeffsHP!
numtype
mul!
mul!(::HomogeneousPolynomial, ::HomogeneousPolynomial, ::HomogeneousPolynomial)
mul_scalar!(::HomogeneousPolynomial, ::NumberNotSeries, ::HomogeneousPolynomial, ::HomogeneousPolynomial)
mul!(::Vector{Taylor1{T}}, ::Union{Matrix{T},SparseMatrixCSC{T}},::Vector{Taylor1{T}}) where {T<:Number}
div!
pow!
Expand Down
Loading

2 comments on commit b9303b5

@lbenet
Copy link
Member

@lbenet lbenet commented on b9303b5 Mar 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/102609

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.17.1 -m "<description of version>" b9303b53ce0365d7193cb09654e62bb8f220d72a
git push origin v0.17.1

Please sign in to comment.