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.

xtrtri.c 373 B

12345678910111213141516171819202122232425
  1. #include "test.h"
  2. datatype *A[2];
  3. int info;
  4. void pre() {
  5. x2matgen(n, n, A[0], A[1]);
  6. }
  7. void post() {
  8. error = x2vecerr(n * n, A[0], A[1]);
  9. }
  10. void tests() {
  11. A[0] = xmalloc(n * n);
  12. A[1] = xmalloc(n * n);
  13. #define ROUTINE XPREF(trtri)
  14. TEST("L", "N", &n, A[i], &n, &info);
  15. TEST("U", "N", &n, A[i], &n, &info);
  16. free(A[0]);
  17. free(A[1]);
  18. }