Skip to content

Commit fa03e54

Browse files
authored
Add tests for the DMD functions (Reference-LAPACK PR 736)
1 parent a53a79e commit fa03e54

File tree

5 files changed

+83
-4
lines changed

5 files changed

+83
-4
lines changed

lapack-netlib/TESTING/Makefile

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ SEIGTST= snep.out \
6161
scsd.out \
6262
slse.out
6363

64+
SDMDEIGTST= sdmd.out
65+
6466
CEIGTST= cnep.out \
6567
csep.out \
6668
cse2.out \
@@ -82,6 +84,8 @@ CEIGTST= cnep.out \
8284
ccsd.out \
8385
clse.out
8486

87+
CDMDEIGTST= cdmd.out
88+
8589
DEIGTST= dnep.out \
8690
dsep.out \
8791
dse2.out \
@@ -103,6 +107,8 @@ DEIGTST= dnep.out \
103107
dcsd.out \
104108
dlse.out
105109

110+
DDMDEIGTST= ddmd.out
111+
106112
ZEIGTST= znep.out \
107113
zsep.out \
108114
zse2.out \
@@ -124,6 +130,7 @@ ZEIGTST= znep.out \
124130
zcsd.out \
125131
zlse.out
126132

133+
ZDMDEIGTST= zdmd.out
127134

128135
SLINTST= stest.out
129136

@@ -142,10 +149,10 @@ ZLINTST= ztest.out
142149
ZLINTSTPROTO= zctest.out ztest_rfp.out
143150

144151
.PHONY: single complex double complex16
145-
single: $(SLINTST) $(SEIGTST)
146-
complex: $(CLINTST) $(CEIGTST)
147-
double: $(DLINTST) $(DEIGTST)
148-
complex16: $(ZLINTST) $(ZEIGTST)
152+
single: $(SLINTST) $(SEIGTST) $(SDMDEIGTST)
153+
complex: $(CLINTST) $(CEIGTST) $(CDMDEIGTST)
154+
double: $(DLINTST) $(DEIGTST) $(DDMDEIGTST)
155+
complex16: $(ZLINTST) $(ZEIGTST) $(ZDMDEIGTST)
149156

150157
.PHONY: singleproto complexproto doubleproto complex16proto
151158
singleproto: $(SLINTSTPROTO)
@@ -297,6 +304,10 @@ scsd.out: csd.in EIG/xeigtsts
297304
slse.out: lse.in EIG/xeigtsts
298305
@echo LSE: Testing Constrained Linear Least Squares routines
299306
./EIG/xeigtsts < lse.in > $@ 2>&1
307+
308+
sdmd.out: sdmd.in EIG/xdmdeigtsts
309+
@echo DMD: Testing Dynamic Mode Decomposition routines
310+
./EIG/xdmdeigtsts < sdmd.in > $@ 2>&1
300311
#
301312
# ======== COMPLEX EIG TESTS ===========================
302313

@@ -379,6 +390,10 @@ ccsd.out: csd.in EIG/xeigtstc
379390
clse.out: lse.in EIG/xeigtstc
380391
@echo LSE: Testing Constrained Linear Least Squares routines
381392
./EIG/xeigtstc < lse.in > $@ 2>&1
393+
394+
cdmd.out: cdmd.in EIG/xdmdeigtstc
395+
@echo DMD: Testing Dynamic Mode Decomposition routines
396+
./EIG/xdmdeigtstc < cdmd.in > $@ 2>&1
382397
#
383398
# ======== DOUBLE EIG TESTS ===========================
384399

@@ -461,6 +476,10 @@ dcsd.out: csd.in EIG/xeigtstd
461476
dlse.out: lse.in EIG/xeigtstd
462477
@echo LSE: Testing Constrained Linear Least Squares routines
463478
./EIG/xeigtstd < lse.in > $@ 2>&1
479+
480+
ddmd.out: ddmd.in EIG/xdmdeigtstd
481+
@echo DMD: Testing Dynamic Mode Decomposition routines
482+
./EIG/xdmdeigtstd < ddmd.in > $@ 2>&1
464483
#
465484
# ======== COMPLEX16 EIG TESTS ===========================
466485

@@ -543,6 +562,10 @@ zcsd.out: csd.in EIG/xeigtstz
543562
zlse.out: lse.in EIG/xeigtstz
544563
@echo LSE: Testing Constrained Linear Least Squares routines
545564
./EIG/xeigtstz < lse.in > $@ 2>&1
565+
566+
zdmd.out: zdmd.in EIG/xdmdeigtstz
567+
@echo DMD: Testing Dynamic Mode Decomposition routines
568+
./EIG/xdmdeigtstz < zdmd.in > $@ 2>&1
546569
# ==============================================================================
547570

548571
LIN/xlintsts: $(FRCLIN) $(FRC)
@@ -578,15 +601,27 @@ LIN/xlintstzc: $(FRCLIN) $(FRC)
578601
EIG/xeigtsts: $(FRCEIG) $(FRC)
579602
$(MAKE) -C EIG xeigtsts
580603

604+
EIG/xdmdeigtsts: $(FRCEIG) $(FRC)
605+
$(MAKE) -C EIG xdmdeigtsts
606+
581607
EIG/xeigtstc: $(FRCEIG) $(FRC)
582608
$(MAKE) -C EIG xeigtstc
583609

610+
EIG/xdmdeigtstc: $(FRCEIG) $(FRC)
611+
$(MAKE) -C EIG xdmdeigtstc
612+
584613
EIG/xeigtstd: $(FRCEIG) $(FRC)
585614
$(MAKE) -C EIG xeigtstd
586615

616+
EIG/xdmdeigtstd: $(FRCEIG) $(FRC)
617+
$(MAKE) -C EIG xdmdeigtstd
618+
587619
EIG/xeigtstz: $(FRCEIG) $(FRC)
588620
$(MAKE) -C EIG xeigtstz
589621

622+
EIG/xdmdeigtstz: $(FRCEIG) $(FRC)
623+
$(MAKE) -C EIG xdmdeigtstz
624+
590625
.PHONY: clean cleantest
591626
clean: cleantest
592627
cleantest:

lapack-netlib/TESTING/cdmd.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
10
2+
5
3+
4+
20
5+
10
6+
7+
30
8+
11
9+
10+
50
11+
20

lapack-netlib/TESTING/ddmd.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
10
2+
5
3+
4+
20
5+
10
6+
7+
30
8+
11
9+
10+
50
11+
20

lapack-netlib/TESTING/sdmd.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
10
2+
5
3+
4+
20
5+
10
6+
7+
30
8+
11
9+
10+
50
11+
20

lapack-netlib/TESTING/zdmd.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
10
2+
5
3+
4+
20
5+
10
6+
7+
30
8+
11
9+
10+
50
11+
20

0 commit comments

Comments
 (0)