@@ -148,26 +148,26 @@ end
148148 labels_Vᴴ = (:d , :c )
149149
150150 Acopy = deepcopy (A)
151- U, S, Vᴴ = @constinferred svd (A, labels_A, labels_U, labels_Vᴴ; full = true )
151+ U, S, Vᴴ = @constinferred svd (A, labels_A, labels_U, labels_Vᴴ; full = Val ( true ) )
152152 @test A == Acopy # should not have altered initial array
153153 US, labels_US = contract (U, (labels_U... , :u ), S, (:u , :v ))
154154 A′ = contract (labels_A, US, labels_US, Vᴴ, (:v , labels_Vᴴ... ))
155155 @test A ≈ A′
156156 @test size (U, 1 ) * size (U, 2 ) == size (U, 3 ) # U is unitary
157157 @test size (Vᴴ, 1 ) == size (Vᴴ, 2 ) * size (Vᴴ, 3 ) # V is unitary
158158
159- U, S, Vᴴ = svd (A, (2 , 1 ), (4 , 3 ); full = true )
159+ U, S, Vᴴ = svd (A, (2 , 1 ), (4 , 3 ); full = Val ( true ) )
160160 US, labels_US = contract (U, (labels_U... , :u ), S, (:u , :v ))
161161 @test A ≈ contract (labels_A, US, labels_US, Vᴴ, (:v , labels_Vᴴ... ))
162162
163- U, S, Vᴴ = @constinferred svd (A, labels_A, labels_A, (); full = true )
163+ U, S, Vᴴ = @constinferred svd (A, labels_A, labels_A, (); full = Val ( true ) )
164164 @test A == Acopy # should not have altered initial array
165165 US, labels_US = contract (U, (labels_A... , :u ), S, (:u , :v ))
166166 A′ = contract (labels_A, US, labels_US, Vᴴ, (:v ,))
167167 @test A ≈ A′
168168 @test size (Vᴴ, 1 ) == 1
169169
170- U, S, Vᴴ = @constinferred svd (A, labels_A, (), labels_A; full = true )
170+ U, S, Vᴴ = @constinferred svd (A, labels_A, (), labels_A; full = Val ( true ) )
171171 @test A == Acopy # should not have altered initial array
172172 US, labels_US = contract (U, (:u ,), S, (:u , :v ))
173173 A′ = contract (labels_A, US, labels_US, Vᴴ, (:v , labels_A... ))
182182 labels_Vᴴ = (:d , :c )
183183
184184 Acopy = deepcopy (A)
185- U, S, Vᴴ = @constinferred svd (A, labels_A, labels_U, labels_Vᴴ; full = false )
185+ U, S, Vᴴ = @constinferred svd (A, labels_A, labels_U, labels_Vᴴ; full = Val ( false ) )
186186 @test A == Acopy # should not have altered initial array
187187 US, labels_US = contract (U, (labels_U... , :u ), S, (:u , :v ))
188188 A′ = contract (labels_A, US, labels_US, Vᴴ, (:v , labels_Vᴴ... ))
@@ -193,14 +193,14 @@ end
193193 Svals = @constinferred svdvals (A, labels_A, labels_U, labels_Vᴴ)
194194 @test Svals ≈ diag (S)
195195
196- U, S, Vᴴ = @constinferred svd (A, labels_A, labels_A, (); full = false )
196+ U, S, Vᴴ = @constinferred svd (A, labels_A, labels_A, (); full = Val ( false ) )
197197 @test A == Acopy # should not have altered initial array
198198 US, labels_US = contract (U, (labels_A... , :u ), S, (:u , :v ))
199199 A′ = contract (labels_A, US, labels_US, Vᴴ, (:v ,))
200200 @test A ≈ A′
201201 @test size (U, ndims (U)) == 1 == size (Vᴴ, 1 )
202202
203- U, S, Vᴴ = @constinferred svd (A, labels_A, (), labels_A; full = false )
203+ U, S, Vᴴ = @constinferred svd (A, labels_A, (), labels_A; full = Val ( false ) )
204204 @test A == Acopy # should not have altered initial array
205205 US, labels_US = contract (U, (:u ,), S, (:u , :v ))
206206 A′ = contract (labels_A, US, labels_US, Vᴴ, (:v , labels_A... ))
0 commit comments