Skip to content

Commit ca53084

Browse files
committed
Add tests to increase coverage of matrix inversion
1 parent 8662507 commit ca53084

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/code_gen_test.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ using LinearAlgebra, StaticArrays
7171
for i = 1:4 #Not high-precision test for Matlab and C
7272
(graph, crefs) = graph_ps_degopt([3 4 2 a[i] 1 0])
7373
add_ldiv!(graph, :R1, :B4, graph.outputs[1])
74+
add_ldiv!(graph, :R1inv, :R1, :I)
7475
add_lincomb!(graph,:Q, [1, 2, 3], [:I, :I, :I])
75-
add_lincomb!(graph,:R0, [2, 3, 4], [:I, :Q, :R1])
76+
add_lincomb!(graph,:R0, [2, 3, 4, 5], [:I, :Q, :R1, :R1inv])
7677
clear_outputs!(graph)
7778
add_output!(graph, :R0)
7879

0 commit comments

Comments
 (0)