Skip to content

Commit

Permalink
Issue 436 (#437)
Browse files Browse the repository at this point in the history
* close issue 436

* version bump
  • Loading branch information
jverzani authored Aug 24, 2021
1 parent 258f828 commit c29cf98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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.51"
version = "1.0.52"

[deps]
CommonEq = "3709ef60-1bee-4518-9f2f-acd86f176c50"
Expand Down
6 changes: 3 additions & 3 deletions src/matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ Base.:+(A::AbstractMatrix{T}, J::UniformScaling) where {T <: SymbolicObject} = (
Base.:+(A::AbstractMatrix, J::UniformScaling{T}) where {T <: SymbolicObject} = (n=LinearAlgebra.checksquare(A); A .+ J.λ*I(n))
Base.:+(A::AbstractMatrix{T}, J::UniformScaling{T}) where {T <: SymbolicObject} = (n=LinearAlgebra.checksquare(A); A .+ J.λ*I(n))

Base.:-(J::UniformScaling, A::AbstractMatrix{T}) where {T <: SymbolicObject} = A + (-J)
Base.:-(J::UniformScaling{T}, A::AbstractMatrix) where {T <: SymbolicObject} = A + (-J)
Base.:-(J::UniformScaling{T}, A::AbstractMatrix{T}) where {T <: SymbolicObject} = A + (-J)
Base.:-(J::UniformScaling, A::AbstractMatrix{T}) where {T <: SymbolicObject} = (-A) + J
Base.:-(J::UniformScaling{T}, A::AbstractMatrix) where {T <: SymbolicObject} = (-A) + J
Base.:-(J::UniformScaling{T}, A::AbstractMatrix{T}) where {T <: SymbolicObject} = (-A) + J


# Issue 397 so that A' infers correctly
Expand Down

2 comments on commit c29cf98

@jverzani
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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

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

Please sign in to comment.