@@ -26,7 +26,7 @@ jagmesh_adj = jagmesh()
26
26
ip = [(1 , 2.0 , 3.0 ), (1 , 2.0 , 3 )]
27
27
algo = SFDP (; initialpos= ip)
28
28
@test algo isa SFDP{3 ,Float64}
29
- ip = [Point2f0 (1 , 2 )]
29
+ ip = [Point2f (1 , 2 )]
30
30
algo = SFDP (; initialpos= ip)
31
31
@test algo isa SFDP{2 ,Float32}
32
32
end
@@ -47,20 +47,20 @@ jagmesh_adj = jagmesh()
47
47
@testset " Testing Jagmesh1 graph" begin
48
48
println (" SFDP Jagmesh1" )
49
49
positions = @time SFDP (; dim= 2 , Ptype= Float32, tol= 0.9 , K= 1 , iterations= 10 )(jagmesh_adj)
50
- @test typeof (positions) == Vector{Point2f0 }
50
+ @test typeof (positions) == Vector{Point2f }
51
51
positions = @time SFDP (; dim= 3 , Ptype= Float32, tol= 0.9 , K= 1 , iterations= 10 )(jagmesh_adj)
52
- @test typeof (positions) == Vector{Point3f0 }
52
+ @test typeof (positions) == Vector{Point3f }
53
53
end
54
54
55
55
@testset " Testing wheel_graph" begin
56
56
println (" SFDP Wheelgraph" )
57
57
g = wheel_graph (10 )
58
58
adj_matrix = adjacency_matrix (g)
59
59
positions = @time SFDP (; dim= 2 , Ptype= Float32, tol= 0.1 , K= 1 )(adj_matrix)
60
- @test typeof (positions) == Vector{Point2f0 }
60
+ @test typeof (positions) == Vector{Point2f }
61
61
@test positions == sfdp (adj_matrix; dim= 2 , Ptype= Float32, tol= 0.1 , K= 1 )
62
62
positions = @time SFDP (; dim= 3 , Ptype= Float32, tol= 0.1 , K= 1 )(adj_matrix)
63
- @test typeof (positions) == Vector{Point3f0 }
63
+ @test typeof (positions) == Vector{Point3f }
64
64
@test positions == sfdp (adj_matrix; dim= 3 , Ptype= Float32, tol= 0.1 , K= 1 )
65
65
end
66
66
end
@@ -75,7 +75,7 @@ jagmesh_adj = jagmesh()
75
75
ip = [(1 , 2.0 , 3.0 ), (1 , 2.0 , 3 )]
76
76
algo = Stress (; initialpos= ip)
77
77
@test algo isa Stress{3 ,Float64}
78
- ip = [Point2f0 (1 , 2 )]
78
+ ip = [Point2f (1 , 2 )]
79
79
algo = Stress (; initialpos= ip)
80
80
@test algo isa Stress{2 ,Float32}
81
81
end
@@ -96,20 +96,20 @@ jagmesh_adj = jagmesh()
96
96
@testset " Testing Jagmesh1 graph" begin
97
97
println (" Stress Jagmesh1" )
98
98
positions = @time Stress (; iterations= 10 , Ptype= Float32)(jagmesh_adj)
99
- @test typeof (positions) == Vector{Point2f0 }
99
+ @test typeof (positions) == Vector{Point2f }
100
100
positions = @time Stress (; iterations= 10 , dim= 3 , Ptype= Float32)(jagmesh_adj)
101
- @test typeof (positions) == Vector{Point3f0 }
101
+ @test typeof (positions) == Vector{Point3f }
102
102
end
103
103
104
104
@testset " Testing wheel_graph" begin
105
105
println (" Stress wheel_graph" )
106
106
g = wheel_graph (10 )
107
107
adj_matrix = adjacency_matrix (g)
108
108
positions = @time Stress (; iterations= 10 , Ptype= Float32)(adj_matrix)
109
- @test typeof (positions) == Vector{Point2f0 }
109
+ @test typeof (positions) == Vector{Point2f }
110
110
@test positions == stress (adj_matrix; iterations= 10 , Ptype= Float32)
111
111
positions = @time Stress (; iterations= 10 , dim= 3 , Ptype= Float32)(adj_matrix)
112
- @test typeof (positions) == Vector{Point3f0 }
112
+ @test typeof (positions) == Vector{Point3f }
113
113
@test positions == stress (adj_matrix; iterations= 10 , dim= 3 , Ptype= Float32)
114
114
end
115
115
end
@@ -124,7 +124,7 @@ jagmesh_adj = jagmesh()
124
124
ip = [(1 , 2.0 , 3.0 ), (1 , 2.0 , 3 )]
125
125
algo = Spring (; initialpos= ip)
126
126
@test algo isa Spring{3 ,Float64}
127
- ip = [Point2f0 (1 , 2 )]
127
+ ip = [Point2f (1 , 2 )]
128
128
algo = Spring (; initialpos= ip)
129
129
@test algo isa Spring{2 ,Float32}
130
130
end
@@ -146,10 +146,10 @@ jagmesh_adj = jagmesh()
146
146
g = wheel_graph (10 )
147
147
adj_matrix = adjacency_matrix (g)
148
148
positions = @time Spring (; C= 2.0 , iterations= 100 , initialtemp= 2.0 , Ptype= Float32)(adj_matrix)
149
- @test typeof (positions) == Vector{Point2f0 }
149
+ @test typeof (positions) == Vector{Point2f }
150
150
@test positions == spring (adj_matrix; C= 2.0 , iterations= 100 , initialtemp= 2.0 , Ptype= Float32)
151
151
positions = @time Spring (; C= 2.0 , iterations= 100 , initialtemp= 2.0 , Ptype= Float32, dim= 3 )(adj_matrix)
152
- @test typeof (positions) == Vector{Point3f0 }
152
+ @test typeof (positions) == Vector{Point3f }
153
153
@test positions ==
154
154
spring (adj_matrix; C= 2.0 , iterations= 100 , initialtemp= 2.0 , Ptype= Float32, dim= 3 )
155
155
end
0 commit comments