Skip to content

Commit c9d14c4

Browse files
committed
fix Random
1 parent 03ed42b commit c9d14c4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ GradedArrays = "0.4.13"
2626
HalfIntegers = "1.6"
2727
LRUCache = "1.6"
2828
LinearAlgebra = "1.10"
29-
Random = "1.11.0"
29+
Random = "1.10"
3030
Strided = "2.3"
3131
TensorAlgebra = "0.3.8"
3232
TensorProducts = "0.1.7"

src/fusiontensor/fusiontensor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Base.zeros(fta::FusionTensorAxes) = zeros(Float64, fta)
217217
function Base.randn(::Type{T}, fta::FusionTensorAxes) where {T}
218218
ft = FusionTensor(T, fta)
219219
for m in eachstoredblock(data_matrix(ft))
220-
m = randn!(m)
220+
randn!(m)
221221
end
222222
return ft
223223
end

test/test_basics.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ end
284284
@test zeros(ComplexF64, fta) isa FusionTensor{ComplexF64,3}
285285
ft1 = randn(ComplexF64, fta)
286286
@test ft1 isa FusionTensor{ComplexF64,3}
287-
@test all(data_matrix(ft1)[Block(1, 5)] .!= 0)
287+
@test all(!=(0), data_matrix(ft1)[Block(1, 5)])
288288
@test randn(fta) isa FusionTensor{Float64,3}
289289

290290
ft2 = FusionTensor(LinearAlgebra.I, (g1, g2))

0 commit comments

Comments
 (0)