TaylorSeries.jl
TaylorSeries.jl copied to clipboard
Preliminary work on static analogs for Taylor1
#240
- Includes the definition of
STaylor1
structure and constructors. - Adds the following functions for the
STaylor1
type:+
,-
.*
,exp
,zero
,one
,evaluate
,==
, functionality to iterate and get indices.
I've added a small benchmarking library for individual operators. This was mostly to provide a means to confirm that none of the operators with STaylor1
objects are allocating.
This doesn't include promotion for different types such as +(STaylor{N,T}, S)
or a number of other operators. I figured it was probably better to get some feedback before going too much further.
Coverage decreased (-3.7%) to 91.597% when pulling ed558cd67bef73224f8649e52c627e3dedcfc02a on mewilhel:master into 234491b71391114dfb9af8dd7470398d5805855d on JuliaDiff:master.
Coverage decreased (-2.1%) to 93.14% when pulling 66fa8ce669199cd046a8d3d27db17b4c8b16ea42 on mewilhel:master into 234491b71391114dfb9af8dd7470398d5805855d on JuliaDiff:master.
Check here for an alternative approach to many of these functions:
https://github.com/dpsanders/StaticTaylorSeries.jl/blob/203f79543688a4c32e29434c0da945aea9ce4614/src/StaticTaylorSeries.jl#L70
using the ntuple
function.
If this is as performant then I think it's preferable.
Sorry, this fell under the radar.
I personally think that the separate StaticTaylorSeries.jl
package would be a more suitable place for this.
Are you still working in this direction?
@dpsanders No worries. I had to divert my attention elsewhere for a quite while. The separate package idea works for me.
I'm currently throwing a separate package together and I should have the preliminary work done by the end of this week.
@mewilhel I was meaning this package that I wrote quite a while ago that has a lot of overlapping functionality:
https://github.com/dpsanders/StaticTaylorSeries.jl
@dpsanders Ah! Sorry, I haven't looked at this in a while. That sounds good too. I'll fork a copy of that repository and transfer some of the content there.
@dpsanders I've created a pull request for StaticTaylorSeries.jl: https://github.com/dpsanders/StaticTaylorSeries.jl/pull/2.