On 18 April 2012 18:29, Eric Anholt <span dir="ltr"><<a href="mailto:eric@anholt.net" target="_blank">eric@anholt.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
generated_tests/builtin_function.py | 7 ++++++-<br>
1 file changed, 6 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/generated_tests/builtin_function.py b/generated_tests/builtin_function.py<br>
index 7e93bea..902a198 100644<br>
--- a/generated_tests/builtin_function.py<br>
+++ b/generated_tests/builtin_function.py<br>
@@ -1047,7 +1047,7 @@ def _make_vector_or_matrix_test_vectors(test_suite_dict):<br>
np.array([1.67, 0.66, 1.87]),<br>
]<br>
norm_floats_vecs = [_normalize(x) for x in nz_floats_vecs]<br>
- mats = [<br>
+ squaremats = [<br>
np.array([[ 1.60, 0.76],<br>
[ 1.53, -1.00]]), # mat2<br>
np.array([[-0.13, -0.87],<br>
@@ -1066,6 +1066,8 @@ def _make_vector_or_matrix_test_vectors(test_suite_dict):<br>
[ 1.60, -0.32, 0.51, -1.84],<br>
[ 1.25, 0.45, 1.90, -0.72],<br>
[-0.16, 0.45, -0.88, 0.39]]), # mat4<br>
+ ]<br>
+ mats = squaremats + [<br>
np.array([[ 0.09, 1.30, 1.25],<br>
[-1.19, 0.08, 1.08]]), # mat3x2<br>
np.array([[-0.36, -1.08, -0.60],<br>
@@ -1184,6 +1186,9 @@ def _make_vector_or_matrix_test_vectors(test_suite_dict):<br>
f('transpose', 1, '1.20', np.transpose, None, [mats])<br>
f('any', 1, '1.10', any, None, [bvecs])<br>
f('all', 1, '1.10', all, None, [bvecs])<br>
+<br>
+ f('inverse', 1, '1.40', np.linalg.inv, None, [squaremats])<br>
+<br>
_make_vector_or_matrix_test_vectors(test_suite)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
1.7.10<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>