Skip to content

Commit

Permalink
Minor fix in lseval.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvarga committed May 25, 2021
1 parent b8166c3 commit a27ffc9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.2'
- '1.3'
- '1.4'
- '1.5'
- '1.6'
- '1'
- 'nightly'
os: [ubuntu-latest]
arch:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MatrixPencils"
uuid = "48965c70-4690-11ea-1f13-43a2532b2fa8"
authors = ["Andreas Varga <varga.andreas@gmail.com>"]
version = "1.6.4"
version = "1.6.5"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
4 changes: 4 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## Version 1.6.5

This patch version fixes a bug in the function lseval.

## Version 1.6.4

This patch version fixes a bug in the function eigselect2.
Expand Down
4 changes: 2 additions & 2 deletions src/lstools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ function lseval(A::AbstractMatrix, E::Union{AbstractMatrix,UniformScaling{Bool}}
else
(E == I || rcond(E,atol2) > toleps) && (return T.(D))
At, Et, Bt, Ct, Dt, = lsminreal2(A, E, B, C, D; finite = false, fast = fast, atol1 = atol1, atol2 = atol2, rtol = rtol)
if rcond(Et,atol2) < toleps
if size(At,1) > 0 && rcond(Et,atol2) < toleps
G = zeros(T,p,m)
for i = 1:p
At1, Et1, Bt1, Ct1, Dt1, = lsminreal2(At, Et, Bt, view(Ct,i:i,:), view(Dt,i:i,:); finite = false, contr = false, noseig = false, fast = fast, atol1 = atol1, atol2 = atol2, rtol = rtol)
for j = 1:m
At11, Et11, Bt11, Ct11, Dt11, = lsminreal2(At1, Et1, view(Bt1,:,j:j), Ct1, view(Dt1,:,j:j); finite = false, obs = false, noseig = true, fast = fast, atol1 = atol1, atol2 = atol2, rtol = rtol)
rcond(Et11,atol2) < toleps ? G[i,j] = T(Inf) : G[i,j] = Dt11[1,1]
size(At11,1) > 0 && rcond(Et11,atol2) < toleps ? G[i,j] = T(Inf) : G[i,j] = Dt11[1,1]
end
end
return G
Expand Down
2 changes: 1 addition & 1 deletion src/rmtools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ machine epsilon of the element type of coefficients of `A`.
The keyword argument `gaintol` specifies the threshold for the magnitude of the nonzero elements of the gain matrix
`C*inv(γE-A)*B+D`, where `γ = val` if `val` is a number or `γ` is a randomly chosen complex value of unit magnitude,
if `val = missing`. Generally, `val` should not be a root of any of entries of `P`.
if `val = missing`. Generally, `val` should not be a zero of any of entries of `R`.
`NUM(λ)` is a polynomial matrix of the form `NUM(λ) = N_1 + λ N_2 + ... + λ**k N_(k+1)`, for which
the coefficient matrices `N_i`, `i = 1, ..., k+1` are stored in the 3-dimensional matrix `NUM`,
Expand Down

2 comments on commit a27ffc9

@andreasvarga
Copy link
Owner Author

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

@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/38169

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 v1.6.5 -m "<description of version>" a27ffc9b44923a9be48b15580c1fee314c387080
git push origin v1.6.5

Please sign in to comment.