Skip to content

Commit e0a9a25

Browse files
authored
Fix division by singular matrices in test suite (#2299)
The matrix division unit test uses a singular matrix as a divisor. This change instead does matrix divison that will result is matrix with 1.5, 1.5, 1.5, 1.0 on the diagonal.
1 parent af66eaf commit e0a9a25

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

resources/Materials/TestSuite/stdlib/math/math_operators.mtlx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@
701701
</nodegraph>
702702
<nodegraph name="divide_matrix33">
703703
<divide name="divide1" type="matrix33">
704-
<input name="in1" type="matrix33" value="1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0" />
704+
<input name="in1" type="matrix33" value="1.5, 1.5, 0.0, 0.0, 1.5, 1.5, 0.0, 0.0, 1.0" />
705705
<input name="in2" type="matrix33" value="1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0" />
706706
</divide>
707707
<transformmatrix name="transformmatrix1" type="vector3">
@@ -712,8 +712,8 @@
712712
</nodegraph>
713713
<nodegraph name="divide_matrix44">
714714
<divide name="divide1" type="matrix44">
715-
<input name="in1" type="matrix44" value="1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0" />
716-
<input name="in2" type="matrix44" value="1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0" />
715+
<input name="in1" type="matrix44" value="1.5, 1.5, 0.0, 0.0, 0.0, 1.5, 1.5, 0.0, 0.0, 0.0, 1.5, 1.5, 0.0, 0.0, 0.0, 1.0" />
716+
<input name="in2" type="matrix44" value="1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0" />
717717
</divide>
718718
<transformmatrix name="transformmatrix1" type="vector4">
719719
<input name="in" type="vector4" value="0.5, 0.5, 0.5, 1.0" />

0 commit comments

Comments
 (0)