We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a5a9c commit 444e5abCopy full SHA for 444e5ab
test/runtests.jl
@@ -162,3 +162,14 @@ end
162
163
using ArrayInterface: zeromatrix
164
@test zeromatrix(rand(4,4,4)) == zeros(4*4*4,4*4*4)
165
+
166
+using ArrayInterface: parent_type
167
+@testset "" begin
168
+ x = ones(4, 4)
169
+ @test parent_type(view(x, 1:2, 1:2)) <: typeof(x)
170
+ @test parent_type(reshape(x, 2, :)) <: typeof(x)
171
+ @test parent_type(transpose(x)) <: typeof(x)
172
+ @test parent_type(Symmetric(x)) <: typeof(x)
173
+ @test parent_type(UpperTriangular(x)) <: typeof(x)
174
+end
175
0 commit comments