|
1 | 1 | #:include "common.fypp"
|
| 2 | +#:set RCI_KINDS_TYPES = REAL_KINDS_TYPES + CMPLX_KINDS_TYPES + INT_KINDS_TYPES |
2 | 3 |
|
3 | 4 | module test_linalg
|
4 | 5 | use testdrive, only : new_unittest, unittest_type, error_type, check, skip_test
|
@@ -48,16 +49,9 @@ contains
|
48 | 49 | new_unittest("trace_int16", test_trace_int16), &
|
49 | 50 | new_unittest("trace_int32", test_trace_int32), &
|
50 | 51 | new_unittest("trace_int64", test_trace_int64), &
|
51 |
| - new_unittest("kronecker_product_rsp", test_kronecker_product_rsp), & |
52 |
| - new_unittest("kronecker_product_rdp", test_kronecker_product_rdp), & |
53 |
| - new_unittest("kronecker_product_rqp", test_kronecker_product_rqp), & |
54 |
| - new_unittest("kronecker_product_csp", test_kronecker_product_csp), & |
55 |
| - new_unittest("kronecker_product_cdp", test_kronecker_product_cdp), & |
56 |
| - new_unittest("kronecker_product_cqp", test_kronecker_product_cqp), & |
57 |
| - new_unittest("kronecker_product_int8", test_kronecker_product_iint8), & |
58 |
| - new_unittest("kronecker_product_int16", test_kronecker_product_iint16), & |
59 |
| - new_unittest("kronecker_product_int32", test_kronecker_product_iint32), & |
60 |
| - new_unittest("kronecker_product_int64", test_kronecker_product_iint64), & |
| 52 | + #:for k1, t1 in RCI_KINDS_TYPES |
| 53 | + new_unittest("kronecker_product_${t1[0]}$${k1}$", test_kronecker_product_${t1[0]}$${k1}$), & |
| 54 | + #:endfor |
61 | 55 | new_unittest("outer_product_rsp", test_outer_product_rsp), &
|
62 | 56 | new_unittest("outer_product_rdp", test_outer_product_rdp), &
|
63 | 57 | new_unittest("outer_product_rqp", test_outer_product_rqp), &
|
@@ -564,7 +558,7 @@ contains
|
564 | 558 | end subroutine test_trace_int64
|
565 | 559 |
|
566 | 560 |
|
567 |
| -#:set RCI_KINDS_TYPES = REAL_KINDS_TYPES + CMPLX_KINDS_TYPES + INT_KINDS_TYPES |
| 561 | + |
568 | 562 | #:for k1, t1 in RCI_KINDS_TYPES
|
569 | 563 | subroutine test_kronecker_product_${t1[0]}$${k1}$(error)
|
570 | 564 | !> Error handling
|
|
0 commit comments