File: vec.mk

package info (click to toggle)
bart-cuda 0.8.00-2
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, sid
  • size: 7,752 kB
  • sloc: ansic: 100,267; python: 717; makefile: 576; sh: 564; cpp: 104
file content (23 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23



tests/test-vec: ones vec nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/ones 1 2 o.ra								;\
	$(TOOLDIR)/vec 1. 1.0+0.0i v.ra								;\
	$(TOOLDIR)/nrmse -t 0. o.ra v.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@


tests/test-vec-imag: ones scale vec nrmse
	set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP)						;\
	$(TOOLDIR)/ones 1 2 o1.ra								;\
	$(TOOLDIR)/scale 1.i o1.ra o.ra								;\
	$(TOOLDIR)/vec 1.i 0.0+1.0i v.ra								;\
	$(TOOLDIR)/nrmse -t 0. o.ra v.ra							;\
	rm *.ra ; cd .. ; rmdir $(TESTS_TMP)
	touch $@

TESTS += tests/test-vec tests/test-vec-imag