Skip to content

Commit

Permalink
close issue #359; tweak travis (#361)
Browse files Browse the repository at this point in the history
* close issue #359; tweak travis

* test newer versions only

* tweak twice
  • Loading branch information
jverzani committed Jun 13, 2020
1 parent e830eca commit a9ea3fb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ julia:
- 1.3
- 1.4
- nightly
git:
depth: 99999

env:
global:
- PYTHON=conda
matrix:
- MPMATH=true
- MPMATH=false

notifications:
email: false

Expand All @@ -33,7 +30,6 @@ jobs:
- GKSwstype="100"
script:
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))'
- julia --project=docs/ docs/make.jl
after_success: skip

after_success:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "SymPy"
uuid = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
version = "1.0.26"
version = "1.0.27"


[deps]
Expand Down
2 changes: 2 additions & 0 deletions src/matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ function LinearAlgebra.:\(A::AbstractArray{T,2}, B::AbstractArray{S,2}) where {T
hcat([A \ bⱼ for bⱼ in eachcol(B)]...)
end

## Issue #359 so that A + λI is of type Sym
Base.:+(A::AbstractMatrix{T}, I::UniformScaling) where {T <: SymbolicObject} = (n=LinearAlgebra.checksquare(A); A .+ I.λ*I(n))

##################################################
##
Expand Down
7 changes: 7 additions & 0 deletions test/test-matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,11 @@ using LinearAlgebra
sin(ϕ) ρ*cos(ϕ)]
@test X.jacobian(Y) == view(X, :, :).jacobian(view(Y, :, :))

## Issue #359
if VERSION >= v"1.2"
@vars a
@test eltype([a 1; 1 a] + I) == Sym
@test eltype([a 1; 1 a] + 2I) == Sym
end

end

0 comments on commit a9ea3fb

Please sign in to comment.