From 67d08b8a353edc61d53067db345a12cbea53a98f Mon Sep 17 00:00:00 2001 From: Nathanael Bosch Date: Mon, 30 Oct 2023 09:31:38 +0100 Subject: [PATCH] =?UTF-8?q?Fix=201.6=20test:=20randn(BigFloat)=20apparentl?= =?UTF-8?q?y=20doesn't=20exist=20=F0=9F=A4=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/core/kronecker.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/core/kronecker.jl b/test/core/kronecker.jl index 8702c3497..982654da7 100644 --- a/test/core/kronecker.jl +++ b/test/core/kronecker.jl @@ -7,10 +7,10 @@ d = 2 q = 2 @testset "$T" for T in (Float64, BigFloat) - R1 = randn(T, q + 1, q + 1) + R1 = rand(T, q + 1, q + 1) K1 = PNDE.IsometricKroneckerProduct(d, R1) M1 = Matrix(K1) - R2 = randn(T, q + 1, q + 1) + R2 = rand(T, q + 1, q + 1) K2 = PNDE.IsometricKroneckerProduct(d, R2) M2 = Matrix(K2) @@ -21,14 +21,14 @@ q = 2 @test K1 + K2 isa PNDE.IsometricKroneckerProduct # DimensionMismatch - X = PNDE.IsometricKroneckerProduct(d, randn(T, 1, 1)) + X = PNDE.IsometricKroneckerProduct(d, rand(T, 1, 1)) @test_throws DimensionMismatch X + K1 @test_throws DimensionMismatch K1 + X @test_throws DimensionMismatch X * K1 @test_throws DimensionMismatch K1 * X # IsometricKroneckerProduct from Vector - R4 = randn(T, q + 1) + R4 = rand(T, q + 1) K4 = PNDE.IsometricKroneckerProduct(d, R4) M4 = Matrix(K4) @test K1 * K4 ≈ M1 * M4