Skip to content

Commit

Permalink
Merge pull request #176 from pkofod/issymmetric
Browse files Browse the repository at this point in the history
Add issymmetric name change.
  • Loading branch information
andreasnoack committed Mar 1, 2016
2 parents edec13d + 3e53ba5 commit e01427f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ Currently, the `@compat` macro supports the following syntaxes:

* `Compat.LinAlg.checksquare` [#14601](https://github.com/JuliaLang/julia/pull/14601)

* `issym` is now `issymmetric` [#15192](https://github.com/JuliaLang/julia/pull/15192)

## New macros

* `@inline` and `@noinline` have been added. On 0.3, these are "no-ops," meaning they don't actually do anything.
Expand Down
5 changes: 5 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -867,4 +867,9 @@ module LinAlg
end
end

if VERSION < v"0.5.0-dev+2915"
const issymmetric = issym
export issymmetric
end

end # module
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -824,3 +824,6 @@ end
@test Compat.LinAlg.checksquare(randn(4,4)) == 4
@test Compat.LinAlg.checksquare(randn(4,4), randn(3,3)) == [4,3]
@test_throws DimensionMismatch Compat.LinAlg.checksquare(randn(4,3))

@test issymmetric([1 2 3; 2 2 3; 3 3 2])
@test !issymmetric([1 3 3; 2 2 3; 3 3 2])

0 comments on commit e01427f

Please sign in to comment.