File tree Expand file tree Collapse file tree 14 files changed +51
-24
lines changed Expand file tree Collapse file tree 14 files changed +51
-24
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,14 @@ end
113
113
@test t isa ComplexMatrix
114
114
@test size (t) == (2 , 3 )
115
115
116
- for (R, M) in ring_to_mat
116
+ for R in example_rings
117
117
t = similar (s, R)
118
118
@test size (t) == size (s)
119
+ @test t isa dense_matrix_type (R)
119
120
120
121
t = similar (s, R, 2 , 3 )
121
122
@test size (t) == (2 , 3 )
123
+ @test t isa dense_matrix_type (R)
122
124
end
123
125
end
124
126
Original file line number Diff line number Diff line change @@ -112,12 +112,14 @@ end
112
112
@test t isa RealMatrix
113
113
@test size (t) == (2 , 3 )
114
114
115
- for (R, M) in ring_to_mat
115
+ for R in example_rings
116
116
t = similar (s, R)
117
117
@test size (t) == size (s)
118
+ @test t isa dense_matrix_type (R)
118
119
119
120
t = similar (s, R, 2 , 3 )
120
121
@test size (t) == (2 , 3 )
122
+ @test t isa dense_matrix_type (R)
121
123
end
122
124
end
123
125
Original file line number Diff line number Diff line change @@ -113,12 +113,14 @@ end
113
113
@test t isa AcbMatrix
114
114
@test size (t) == (2 , 3 )
115
115
116
- for (R, M) in ring_to_mat
116
+ for R in example_rings
117
117
t = similar (s, R)
118
118
@test size (t) == size (s)
119
+ @test t isa dense_matrix_type (R)
119
120
120
121
t = similar (s, R, 2 , 3 )
121
122
@test size (t) == (2 , 3 )
123
+ @test t isa dense_matrix_type (R)
122
124
end
123
125
end
124
126
Original file line number Diff line number Diff line change @@ -112,12 +112,14 @@ end
112
112
@test t isa ArbMatrix
113
113
@test size (t) == (2 , 3 )
114
114
115
- for (R, M) in ring_to_mat
115
+ for R in example_rings
116
116
t = similar (s, R)
117
117
@test size (t) == size (s)
118
+ @test t isa dense_matrix_type (R)
118
119
119
120
t = similar (s, R, 2 , 3 )
120
121
@test size (t) == (2 , 3 )
122
+ @test t isa dense_matrix_type (R)
121
123
end
122
124
end
123
125
Original file line number Diff line number Diff line change @@ -138,12 +138,14 @@ end
138
138
@test t isa QQMatrix
139
139
@test size (t) == (2 , 3 )
140
140
141
- for (R, M) in ring_to_mat
141
+ for R in example_rings
142
142
t = similar (s, R)
143
143
@test size (t) == size (s)
144
+ @test t isa dense_matrix_type (R)
144
145
145
146
t = similar (s, R, 2 , 3 )
146
147
@test size (t) == (2 , 3 )
148
+ @test t isa dense_matrix_type (R)
147
149
end
148
150
end
149
151
Original file line number Diff line number Diff line change 96
96
@test size (t) == (2 , 3 )
97
97
@test iszero (t)
98
98
99
- for (R, M) in ring_to_mat
99
+ for R in example_rings
100
100
t = sim_zero (s, R)
101
101
@test size (t) == size (s)
102
+ @test t isa dense_matrix_type (R)
102
103
if sim_zero == zero
103
104
@test iszero (t)
104
105
end
105
106
106
107
t = sim_zero (s, R, 2 , 3 )
107
108
@test size (t) == (2 , 3 )
109
+ @test t isa dense_matrix_type (R)
108
110
if sim_zero == zero
109
111
@test iszero (t)
110
112
end
Original file line number Diff line number Diff line change @@ -156,12 +156,14 @@ end
156
156
@test t isa ZZModMatrix
157
157
@test size (t) == (2 , 3 )
158
158
159
- for (R, M) in ring_to_mat
159
+ for R in example_rings
160
160
t = similar (s, R)
161
161
@test size (t) == size (s)
162
+ @test t isa dense_matrix_type (R)
162
163
163
164
t = similar (s, R, 2 , 3 )
164
165
@test size (t) == (2 , 3 )
166
+ @test t isa dense_matrix_type (R)
165
167
end
166
168
end
167
169
Original file line number Diff line number Diff line change @@ -198,12 +198,14 @@ end
198
198
@test t isa FqMatrix
199
199
@test size (t) == (2 , 3 )
200
200
201
- for (R, M) in ring_to_mat
201
+ for R in example_rings
202
202
t = similar (s, R)
203
203
@test size (t) == size (s)
204
+ @test t isa dense_matrix_type (R)
204
205
205
206
t = similar (s, R, 2 , 3 )
206
207
@test size (t) == (2 , 3 )
208
+ @test t isa dense_matrix_type (R)
207
209
end
208
210
end
209
211
Original file line number Diff line number Diff line change @@ -182,12 +182,14 @@ end
182
182
@test t isa FqPolyRepMatrix
183
183
@test size (t) == (2 , 3 )
184
184
185
- for (R, M) in ring_to_mat
185
+ for R in example_rings
186
186
t = similar (s, R)
187
187
@test size (t) == size (s)
188
+ @test t isa dense_matrix_type (R)
188
189
189
190
t = similar (s, R, 2 , 3 )
190
191
@test size (t) == (2 , 3 )
192
+ @test t isa dense_matrix_type (R)
191
193
end
192
194
end
193
195
Original file line number Diff line number Diff line change @@ -182,12 +182,14 @@ end
182
182
@test t isa fqPolyRepMatrix
183
183
@test size (t) == (2 , 3 )
184
184
185
- for (R, M) in ring_to_mat
185
+ for R in example_rings
186
186
t = similar (s, R)
187
187
@test size (t) == size (s)
188
+ @test t isa dense_matrix_type (R)
188
189
189
190
t = similar (s, R, 2 , 3 )
190
191
@test size (t) == (2 , 3 )
192
+ @test t isa dense_matrix_type (R)
191
193
end
192
194
end
193
195
You can’t perform that action at this time.
0 commit comments