Skip to content

Commit b9303b5

Browse files
authored
Further reduction of allocs in mutating methods for mixtures (#349)
* 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
1 parent a596f6b commit b9303b5

File tree

5 files changed

+625
-370
lines changed

5 files changed

+625
-370
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TaylorSeries"
22
uuid = "6aa5eb33-94cf-58f4-a9d0-e4b2c4fc25ea"
33
repo = "https://github.com/JuliaDiff/TaylorSeries.jl.git"
4-
version = "0.17.0"
4+
version = "0.17.1"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

docs/src/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ resize_coeffsHP!
7272
numtype
7373
mul!
7474
mul!(::HomogeneousPolynomial, ::HomogeneousPolynomial, ::HomogeneousPolynomial)
75+
mul_scalar!(::HomogeneousPolynomial, ::NumberNotSeries, ::HomogeneousPolynomial, ::HomogeneousPolynomial)
7576
mul!(::Vector{Taylor1{T}}, ::Union{Matrix{T},SparseMatrixCSC{T}},::Vector{Taylor1{T}}) where {T<:Number}
7677
div!
7778
pow!

0 commit comments

Comments
 (0)