julia: remove redundant diagonal test patch
Fix merged upstream and backported to Julia 1.0.5: https://github.com/JuliaLang/julia/pull/31443
This commit is contained in:
parent
4c97cf823f
commit
5926635765
2 changed files with 0 additions and 28 deletions
|
@ -88,7 +88,6 @@ stdenv.mkDerivation rec {
|
|||
;
|
||||
|
||||
patches = [
|
||||
./diagonal-test.patch
|
||||
./use-system-utf8proc-julia-1.0.patch
|
||||
];
|
||||
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
From 9eb180c523b877a53b9e1cf53a4d5e6dad3d7bfe Mon Sep 17 00:00:00 2001
|
||||
From: Lars Jellema <lars.jellema@gmail.com>
|
||||
Date: Sat, 19 Sep 2020 13:52:20 +0200
|
||||
Subject: [PATCH] Use approximate comparisons for diagonal tests
|
||||
|
||||
---
|
||||
stdlib/LinearAlgebra/test/diagonal.jl | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/stdlib/LinearAlgebra/test/diagonal.jl b/stdlib/LinearAlgebra/test/diagonal.jl
|
||||
index e420d5bc6d..7f1b5d0aec 100644
|
||||
--- a/stdlib/LinearAlgebra/test/diagonal.jl
|
||||
+++ b/stdlib/LinearAlgebra/test/diagonal.jl
|
||||
@@ -450,8 +450,8 @@ end
|
||||
M = randn(T, 5, 5)
|
||||
MM = [randn(T, 2, 2) for _ in 1:2, _ in 1:2]
|
||||
for transform in (identity, adjoint, transpose, Adjoint, Transpose)
|
||||
- @test lmul!(transform(D), copy(M)) == *(transform(Matrix(D)), M)
|
||||
- @test rmul!(copy(M), transform(D)) == *(M, transform(Matrix(D)))
|
||||
+ @test lmul!(transform(D), copy(M)) ≈ *(transform(Matrix(D)), M)
|
||||
+ @test rmul!(copy(M), transform(D)) ≈ *(M, transform(Matrix(D)))
|
||||
@test lmul!(transform(DD), copy(MM)) == *(transform(fullDD), MM)
|
||||
@test rmul!(copy(MM), transform(DD)) == *(MM, transform(fullDD))
|
||||
end
|
||||
--
|
||||
2.28.0
|
||||
|
Loading…
Reference in a new issue