Skip to content

Commit 11975c4

Browse files
github-actions[bot]CompatHelper Juliajagot
authored
CompatHelper: bump compat for ArnoldiMethod to 0.4, (keep existing compat) (#7)
* CompatHelper: bump compat for ArnoldiMethod to 0.4, (keep existing compat) * Updated CompatHelper workflow * Add new compat entry for Statistics * Updated TagBot workflow * Bump version * Imports of targets from ArnoldiMethod.jl * Transitioned documentation plot to Python{Call,Plot} * Upgraded Documenter compat * Fix test --------- Co-authored-by: CompatHelper Julia <compathelper_noreply@julialang.org> Co-authored-by: Stefanos Carlström <stefanos.carlstrom@gmail.com>
1 parent 6dcda7f commit 11975c4

14 files changed

+79
-24
lines changed

.github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- run: |
5252
julia --project=docs -e '
5353
using Pkg
54-
pkg"add PyCall PyPlot https://github.com/jagot/Jagot.jl.git https://github.com/jagot/PyPlotRecipes.jl.git Colors SpecialFunctions LinearAlgebra"
54+
pkg"add PythonCall PythonPlot https://github.com/jagot/Jagot.jl.git Colors SpecialFunctions LinearAlgebra"
5555
Pkg.develop(PackageSpec(path=pwd()))
5656
Pkg.instantiate()'
5757
env:

.github/workflows/CompatHelper.yml

+33-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,43 @@ on:
33
schedule:
44
- cron: 0 0 * * *
55
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
69
jobs:
710
CompatHelper:
811
runs-on: ubuntu-latest
912
steps:
10-
- name: Pkg.add("CompatHelper")
11-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12-
- name: CompatHelper.main()
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v1
19+
with:
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
29+
- name: "Install CompatHelper"
30+
run: |
31+
import Pkg
32+
name = "CompatHelper"
33+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34+
version = "3"
35+
Pkg.add(; name, uuid, version)
36+
shell: julia --color=yes {0}
37+
- name: "Run CompatHelper"
38+
run: |
39+
import CompatHelper
40+
CompatHelper.main()
41+
shell: julia --color=yes {0}
1342
env:
1443
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1544
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'
45+
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}

.github/workflows/TagBot.yml

+18
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: 3
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
723
jobs:
824
TagBot:
925
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
@@ -12,4 +28,6 @@ jobs:
1228
- uses: JuliaRegistries/TagBot@v1
1329
with:
1430
token: ${{ secrets.GITHUB_TOKEN }}
31+
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
1532
ssh: ${{ secrets.DOCUMENTER_KEY }}
33+
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
/docs/build/
88
/docs/site/
99
/docs/src/figures/
10+
/docs/Manifest.toml
11+
.CondaPkg/

Project.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MatrixPolynomials"
22
uuid = "bd52c179-449c-4965-a404-68b29a447f4b"
33
authors = ["Stefanos Carlström <stefanos.carlstrom@gmail.com>"]
4-
version = "0.1.2"
4+
version = "0.1.3"
55

66
[deps]
77
ArnoldiMethod = "ec485272-7323-5ecc-a04f-4719b315124d"
@@ -14,11 +14,12 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1414
UnicodeFun = "1cfade01-22cf-5700-b092-accc4b62d6e1"
1515

1616
[compat]
17-
ArnoldiMethod = "0.2.0"
17+
ArnoldiMethod = "0.2.0, 0.4"
1818
Compat = "3.26.0, 4"
1919
Formatting = "0.4"
2020
Parameters = "0.12"
2121
SpecialFunctions = "1.3, 2"
22+
Statistics = "1"
2223
UnicodeFun = "0.4"
2324
julia = "1.3"
2425

docs/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "0.25"
5+
Documenter = "1"

docs/make.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ makedocs(;
1414
"Newton polynomials" => "newton_polynomials.md",
1515
"φₖ functions" => "phi_functions.md",
1616
],
17-
repo="https://github.com/jagot/MatrixPolynomials.jl/blob/{commit}{path}#L{line}",
17+
repo=Remotes.GitHub("jagot", "MatrixPolynomials.jl"),
1818
sitename="MatrixPolynomials.jl",
1919
authors="Stefanos Carlström <stefanos.carlstrom@gmail.com>",
2020
doctest=false,
21+
checkdocs=:exports
2122
)
2223

2324
deploydocs(;

docs/plots.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using PyPlot
1+
using PythonPlot
22
using Jagot.plotting
33
plot_style("ggplot")
44

docs/src/divided_differences.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ i.e. the first row of the function ``f`` applied to the matrix
5656
&&&&\zeta_j}.
5757
\end{equation}
5858
```
59-
The right-eigenvectors are given by [Opitz]
59+
The right-eigenvectors are given by [^Opitz]
6060
```math
6161
\begin{equation}
6262
\label{eqn:div-diff-mat-right-eigen}
@@ -268,12 +268,6 @@ MatrixPolynomials.propagate_div_diff_sin_cos
268268
propagators. Computing, 80(2), 189–201. [DOI:
269269
10.1007/s00607-007-0227-1](http://dx.doi.org/10.1007/s00607-007-0227-1)
270270

271-
[^Kandolf]: Kandolf, P., Ostermann, A., & Rainer, S. (2014). A
272-
residual based error estimate for Leja interpolation of matrix
273-
functions. Linear Algebra and its Applications, 456(nil),
274-
157–173. [DOI:
275-
10.1016/j.laa.2014.04.023](http://dx.doi.org/10.1016/j.laa.2014.04.023)
276-
277271
[^McCurdy]: McCurdy, A. C., Ng, K. C., & Parlett,
278272
B. N. (1984). Accurate computation of divided differences of the
279273
exponential function. Mathematics of Computation, 43(168),

docs/src/funcv.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ LinearAlgebra.mul!(w, funcv::MatrixPolynomials.FuncV, v)
1010

1111
```@docs
1212
MatrixPolynomials.spectral_range
13+
MatrixPolynomials.hermitian_spectral_range
1314
```
1415

1516
### Shapes

docs/src/leja.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ interpolation points.
3434

3535
MatrixPolynomials.jl provides two methods for generating the Leja
3636
points, [`MatrixPolynomials.Leja`](@ref) and
37-
[`MatrixPolynomials.FastLeja`](@ref). The figure below illustrates the
38-
distribution of Leja points using both methods, on the line
39-
``[-2,2]``, for the [`MatrixPolynomials.Leja`](@ref), an underlying
40-
discretization of 1000 points was employed, and 10 Leja points were
41-
generated. The lower part of the plot shows the estimation of the
42-
[capacity](https://en.wikipedia.org/wiki/Capacity_of_a_set),
37+
[`MatrixPolynomials.FastLeja`](@ref)[^Baglama]. The figure below
38+
illustrates the distribution of Leja points using both methods, on the
39+
line ``[-2,2]``, for the [`MatrixPolynomials.Leja`](@ref), an
40+
underlying discretization of 1000 points was employed, and 10 Leja
41+
points were generated. The lower part of the plot shows the estimation
42+
of the [capacity](https://en.wikipedia.org/wiki/Capacity_of_a_set),
4343
calculated as
4444
```math
4545
C(\{\zeta_{1:m}\}) \approx

docs/src/newton_polynomials.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Newton polynomials
2+
[^Kandolf]
23

34
```@docs
45
MatrixPolynomials.NewtonPolynomial
@@ -13,3 +14,10 @@ LinearAlgebra.mul!(w, nmp::MatrixPolynomials.NewtonMatrixPolynomial, A, v)
1314
MatrixPolynomials.NewtonMatrixPolynomialDerivative
1415
MatrixPolynomials.φₖResidualEstimator
1516
```
17+
## Bibliography
18+
19+
[^Kandolf]: Kandolf, P., Ostermann, A., & Rainer, S. (2014). A
20+
residual based error estimate for Leja interpolation of matrix
21+
functions. Linear Algebra and its Applications, 456(nil),
22+
157–173. [DOI:
23+
10.1016/j.laa.2014.04.023](http://dx.doi.org/10.1016/j.laa.2014.04.023)

src/MatrixPolynomials.jl

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module MatrixPolynomials
33
using Parameters
44
using LinearAlgebra
55
using ArnoldiMethod
6+
using ArnoldiMethod: SR, SI, LR, LI
67
using SpecialFunctions
78
const Γ = gamma
89
const lnΓ = loggamma

test/newton.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ end
100100
@testset "Matrix polynomials" begin
101101
@testset "Inhomogeneous coupled ODEs, $kind" for (kind,m,tol) in [(:real,43,1e-12), (:complex,60,1e-12)]
102102
n = 10 # Number of ODEs
103-
Y₀ = 1.0*ones(n)
103+
Y₀ = 1.0*ones(kind == :real ? Float64 : ComplexF64, n)
104104
G = -3*ones(n) # Inhomogeneous terms
105105

106106
n_discr = 1000 # Number of points spanning eigenspectrum interval

0 commit comments

Comments
 (0)