Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Backports 1.2.0 rc2 #32270

Merged
merged 32 commits into from
Jul 8, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9959fa5
Two fixes to win32 cross compilation
Keno May 18, 2019
b991468
fix #32121, macro hygiene bug in named tuples
JeffBezanson May 24, 2019
d2e2ea9
Fully qualify at-everywhere, fixes #28966. (#32144)
fredrikekre May 26, 2019
28c2b0d
Fix unsigned wrap around in lpad/rpad/string allocation (#32161)
c42f May 28, 2019
5d88b74
Bump OpenBLAS BB tarballs to `v0.3.5-2`, to fix FreeBSD
staticfloat May 30, 2019
5a1a361
fix LibGit2 test: unknown repo now returns ERROR instead of EAUTH (#3…
JeffBezanson Jun 3, 2019
9ce9000
Remove internal sort from getipaddrs (#32260)
omus Jun 7, 2019
83e7363
use `AbstractMatrix` as the eltype of `Symmetric` for array of arrays…
JeffBezanson Jun 7, 2019
05960a5
readdlm(bytearray) shouldn't modify bytearray (#32255)
stevengj Jun 8, 2019
12fd2de
Remove copy(::SubArray) definition from SparseArrays, fixes #32213. (…
fredrikekre Jun 9, 2019
6e7afe6
fix build with JULIA_ENABLE_THREADING==0
JeffBezanson May 28, 2019
cdb12d3
Allow both EAUTH and ERROR for bad credential test in LibGit2 tests. …
fredrikekre Jun 9, 2019
c47f050
Bump Pkg to v1.2.0-rc2. (#32281)
fredrikekre Jun 11, 2019
5579bc6
types: per comment, avoid copy when t is not bound (#32176) (#32355)
JeffBezanson Jun 19, 2019
685a9e3
fix some possible hangs in threaded loops
JeffBezanson Jun 18, 2019
43b3695
fixes for getindex tab-completion (#31499)
stevengj Jun 15, 2019
05e78d5
fix #32386, type intersection bug in var bounds (#32425)
JeffBezanson Jun 27, 2019
4a16023
fix #30653, call `malloc_trim` sometimes (#32428)
JeffBezanson Jun 27, 2019
89f73ab
fix #32325, struct plus outer ctor inside `let` (#32326)
JeffBezanson Jun 18, 2019
4551b30
Fix tryparse for invalid Chars (#32351)
c42f Jun 20, 2019
257c6ce
Add missing test dependency on Random to Statistics (#32383)
ararslan Jun 22, 2019
3546c63
Fix element type of -Symmetric(A) for e.g. Bool or JuMP.VariableRef,…
blegat Jun 26, 2019
dd98510
codegen,tbaa: fix array isassigned tbaa information (#32356)
vtjnash Jun 26, 2019
0ba8caa
Fix Distributed.head_and_tail (#32431)
mortenpi Jun 27, 2019
525d4e9
Prevent download on windows picking up a rogue curl executable (#32412)
musm Jun 28, 2019
44a224c
fix the fix for #32121, more named tuple macro hygiene (#32464)
JeffBezanson Jul 2, 2019
435510c
Upgrade Pkg to v1.2.0-rc3. (#32487)
fredrikekre Jul 4, 2019
dfad4e6
Unconditionally append lib/julia to rpath, fixes #31903. (#31933)
fredrikekre May 6, 2019
81fc0a1
Fix optind in getopt on musl libc. On exit optind
fredrikekre May 6, 2019
b92c6ed
bug fixed in read_to_buffer (#32457)
Jul 3, 2019
bd9f411
fix #32465, inference of splatting unionall NamedTuple types (#32494)
JeffBezanson Jul 5, 2019
2e72bca
fix #32499, regression in struct expr in assignment rhs (#32512)
JeffBezanson Jul 8, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix element type of -Symmetric(A) for e.g. Bool or JuMP.VariableRef, f…
…ixes #32374 (#32375)

(cherry picked from commit d958419)
  • Loading branch information
blegat authored and KristofferC committed Jul 1, 2019
commit 3546c6326a400def1f7d9d7afabf483999856cd4
4 changes: 2 additions & 2 deletions stdlib/LinearAlgebra/src/symmetric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ function triu(A::Symmetric, k::Integer=0)
end
end

(-)(A::Symmetric{Tv,S}) where {Tv,S} = Symmetric{Tv,S}(-A.data, A.uplo)
(-)(A::Hermitian{Tv,S}) where {Tv,S} = Hermitian{Tv,S}(-A.data, A.uplo)
(-)(A::Symmetric) = Symmetric(-A.data, sym_uplo(A.uplo))
(-)(A::Hermitian) = Hermitian(-A.data, sym_uplo(A.uplo))

## Addition/subtraction
for f in (:+, :-)
Expand Down
2 changes: 2 additions & 0 deletions stdlib/LinearAlgebra/test/symmetric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ end
@testset "Unary minus for Symmetric/Hermitian matrices" begin
@test (-Symmetric(asym))::typeof(Symmetric(asym)) == -asym
@test (-Hermitian(aherm))::typeof(Hermitian(aherm)) == -aherm
@test (-Symmetric([true true; false false]))::Symmetric{Int,Matrix{Int}} == [-1 -1; -1 0]
@test (-Hermitian([true false; true false]))::Hermitian{Int,Matrix{Int}} == [-1 0; 0 0]
end

@testset "Addition and subtraction for Symmetric/Hermitian matrices" begin
Expand Down