You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

xsygst.c 624 B

1234567891011121314151617181920212223242526272829303132
  1. #include "test.h"
  2. datatype *A[2], *B[2];
  3. int info;
  4. void pre() {
  5. x2matgen(n, n, A[0], A[1]);
  6. x2matgen(n, n, B[0], B[1]);
  7. }
  8. void post() {
  9. error = x2vecerr(n * n, A[0], A[1]);
  10. }
  11. void tests() {
  12. A[0] = xmalloc(n * n);
  13. A[1] = xmalloc(n * n);
  14. B[0] = xmalloc(n * n);
  15. B[1] = xmalloc(n * n);
  16. #define ROUTINE XPREF(sygst)
  17. TEST(iONE, "L", &n, A[i], &n, B[i], &n, &info);
  18. TEST(iONE, "U", &n, A[i], &n, B[i], &n, &info);
  19. TEST(iTWO, "L", &n, A[i], &n, B[i], &n, &info);
  20. TEST(iTWO, "U", &n, A[i], &n, B[i], &n, &info);
  21. free(A[0]);
  22. free(A[1]);
  23. free(B[0]);
  24. free(B[1]);
  25. }