From 25d94aa8aabb8ac3e8bbea0bc439ea6148444cc8 Mon Sep 17 00:00:00 2001 From: leochanj Date: Wed, 21 Oct 2020 01:52:54 -0400 Subject: debug libextra and remove matlab --- SD-VBS/common/matlab/fSelfCheck.m | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 SD-VBS/common/matlab/fSelfCheck.m (limited to 'SD-VBS/common/matlab/fSelfCheck.m') diff --git a/SD-VBS/common/matlab/fSelfCheck.m b/SD-VBS/common/matlab/fSelfCheck.m deleted file mode 100644 index 0288328..0000000 --- a/SD-VBS/common/matlab/fSelfCheck.m +++ /dev/null @@ -1,27 +0,0 @@ -function ret = fSelfCheck(in1, path, tol) - -r1 = size(in1, 1); -c1 = size(in1, 2); - -ret = 1; - -file = [path, '/expected.m']; -fd = fopen(file, 'r'); - -[in2, count] = fscanf(fd, '%f'); - -if(count ~= (r1*c1) ) - fprintf(1, 'Dimensions mismatch: Expected %d\t Observed %d\n', count, (r1*c1)); - ret = -1; -else - ret = 1; - for i=1:(r1*c1) - if( (abs(in1(i)) - abs(in2(i)) > tol) || (abs(in2(i)) - abs(in1(i))) > tol) - fprintf(1, 'Checking Error: Index %d\tExpected %f\tObserved %f\n', i, in2(i), in1(i)); - ret = -1; - break; - end - end - -end - -- cgit v1.2.2