Skip to content

Commit 7cfbd99

Browse files
CXSparse cmake
1 parent abb6041 commit 7cfbd99

File tree

333 files changed

+2628
-110039
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+2628
-110039
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ CXSparse/Tcov/cov.sort
138138
CXSparse/Tcov/cover.out
139139
CXSparse/Tcov/covs.out
140140
CXSparse/Tcov/cs_*.c
141-
CXSparse/Tcov/cs*_ci.c
142-
CXSparse/Tcov/cs*_cl.c
143-
CXSparse/Tcov/cs*_di.c
144-
CXSparse/Tcov/cs*_dl.c
145141
CXSparse/Tcov/*.out
146142
CXSparse/Tcov/cs_demo1_ci
147143
CXSparse/Tcov/cs_demo1_cl

BTF/Lib/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,18 @@ install: $(AR_TARGET) $(INSTALL_LIB)/$(SO_TARGET)
7171
$(INSTALL_LIB)/$(SO_TARGET): $(OBJ)
7272
@mkdir -p $(INSTALL_LIB)
7373
@mkdir -p $(INSTALL_INCLUDE)
74-
@mkdir -p $(INSTALL_DOC)
7574
$(CC) $(SO_OPTS) $^ -o $@ $(LDLIBS)
7675
( cd $(INSTALL_LIB) ; ln -sf $(SO_TARGET) $(SO_PLAIN) )
7776
( cd $(INSTALL_LIB) ; ln -sf $(SO_TARGET) $(SO_MAIN) )
7877
$(CP) ../Include/btf.h $(INSTALL_INCLUDE)
79-
$(CP) ../README.txt $(INSTALL_DOC)/BTF_README.txt
8078
chmod 755 $(INSTALL_LIB)/$(SO_TARGET)
8179
chmod 644 $(INSTALL_INCLUDE)/btf.h
82-
chmod 644 $(INSTALL_DOC)/BTF_README.txt
8380

8481
uninstall:
8582
$(RM) $(INSTALL_LIB)/$(SO_TARGET)
8683
$(RM) $(INSTALL_LIB)/$(SO_PLAIN)
8784
$(RM) $(INSTALL_LIB)/$(SO_MAIN)
8885
$(RM) $(INSTALL_INCLUDE)/btf.h
89-
$(RM) $(INSTALL_DOC)/BTF_README.txt
9086

9187
#-------------------------------------------------------------------------------
9288

CHOLMOD/Lib/Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -540,25 +540,18 @@ install: $(AR_TARGET) $(INSTALL_LIB)/$(SO_TARGET)
540540
$(INSTALL_LIB)/$(SO_TARGET): $(OBJ)
541541
@mkdir -p $(INSTALL_LIB)
542542
@mkdir -p $(INSTALL_INCLUDE)
543-
@mkdir -p $(INSTALL_DOC)
544543
$(CXX) $(SO_OPTS) $^ -o $@ $(LDLIBS)
545544
( cd $(INSTALL_LIB) ; ln -sf $(SO_TARGET) $(SO_PLAIN) )
546545
( cd $(INSTALL_LIB) ; ln -sf $(SO_TARGET) $(SO_MAIN) )
547546
$(CP) ../Include/cholmod*.h $(INSTALL_INCLUDE)
548547
$(RM) $(INSTALL_INCLUDE)/cholmod_internal.h
549-
$(CP) ../Doc/CHOLMOD_UserGuide.pdf $(INSTALL_DOC)
550-
$(CP) ../README.txt $(INSTALL_DOC)/CHOLMOD_README.txt
551548
chmod 755 $(INSTALL_LIB)/$(SO_TARGET)
552549
chmod 644 $(INSTALL_INCLUDE)/cholmod*.h
553-
chmod 644 $(INSTALL_DOC)/CHOLMOD_UserGuide.pdf
554-
chmod 644 $(INSTALL_DOC)/CHOLMOD_README.txt
555550

556551
# uninstall CHOLMOD
557552
uninstall:
558553
$(RM) $(INSTALL_LIB)/$(SO_TARGET)
559554
$(RM) $(INSTALL_LIB)/$(SO_PLAIN)
560555
$(RM) $(INSTALL_LIB)/$(SO_MAIN)
561556
$(RM) $(INSTALL_INCLUDE)/cholmod*.h
562-
$(RM) $(INSTALL_DOC)/CHOLMOD_UserGuide.pdf
563-
$(RM) $(INSTALL_DOC)/CHOLMOD_README.txt
564557

CSparse/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
# To clean up the files:
2929
#
3030
# make clean
31+
#
32+
# To run test coverage:
33+
#
34+
# make cov
3135

3236
JOBS ?= 8
3337

@@ -77,8 +81,13 @@ uninstall:
7781
# remove all files not in the distribution
7882
clean:
7983
- $(RM) -rf build/* Config/*.tmp
84+
( cd Tcov && $(MAKE) purge )
8085

8186
purge: clean
8287

8388
distclean: clean
8489

90+
# test coverage
91+
cov:
92+
( cd Tcov && $(MAKE) )
93+

CSparse/README.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ cs_updown.c sparse rank-1 Cholesky update/downate
124124
cs_usolve.c x=U\b
125125
cs_util.c various utilities (allocate/free matrices, workspace, etc)
126126
cs_utsolve.c x=U'\b
127-
Makefile Makefile for CSparse
128127
README.txt README file for CSparse
129128

130129
--------------------------------------------------------------------------------
@@ -396,7 +395,6 @@ mbeacxc US economy, 1972. Dan Szyld, while at NYU
396395
t1 small example used in Chapter 2
397396
west0067 Cavett problem with 5 components (chemical eng., Westerberg)
398397

399-
400398
--------------------------------------------------------------------------------
401399
./Tcov: Exhaustive test coverage of CSparse
402400
--------------------------------------------------------------------------------

CSparse/Source/cs_qr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
csn *cs_qr (const cs *A, const css *S)
44
{
55
double *Rx, *Vx, *Ax, *x, *Beta ;
6-
csi i, k, p, m, n, vnz, p1, top, m2, len, col, rnz, *s, *leftmost, *Ap, *Ai,
6+
csi i, k, p, n, vnz, p1, top, m2, len, col, rnz, *s, *leftmost, *Ap, *Ai,
77
*parent, *Rp, *Ri, *Vp, *Vi, *w, *pinv, *q ;
88
cs *R, *V ;
99
csn *N ;
1010
if (!CS_CSC (A) || !S) return (NULL) ;
11-
m = A->m ; n = A->n ; Ap = A->p ; Ai = A->i ; Ax = A->x ;
11+
n = A->n ; Ap = A->p ; Ai = A->i ; Ax = A->x ;
1212
q = S->q ; parent = S->parent ; pinv = S->pinv ; m2 = S->m2 ;
1313
vnz = S->lnz ; rnz = S->unz ; leftmost = S->leftmost ;
1414
w = cs_malloc (m2+n, sizeof (csi)) ; /* get csi workspace */

CSparse/Tcov/Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CC = gcc
77
CFLAGS = -O -g --coverage -fprofile-abs-path \
88
-Wall -W -Wshadow -Wmissing-prototypes -Wstrict-prototypes \
99
-Wredundant-decls -Wnested-externs -Wdisabled-optimization -std=c11 \
10+
-Wno-unused-but-set-variable \
1011
-Wno-unused-parameter -I../Include -I../Demo
1112

1213
run: all run1 runbook run3 runtest
@@ -85,18 +86,12 @@ runtest: all
8586
- $(V) ./cstcov_test ../Matrix/ash219 > test_ash.out
8687
- $(V) ./cstcov_test ../Matrix/lp_afiro > test_afiro.out
8788

88-
readhb: readhb.f
89-
f77 -o readhb readhb.f
90-
91-
readhb.f:
92-
- ln -s readhb.f
93-
9489
clean:
9590
- $(RM) *.o *.bbg *.da *.gcov *.gcda *.gcno
9691

9792
purge: distclean
9893

9994
# remove everything for distribution, including all symbolic links
10095
distclean: clean
101-
- $(RM) cs_demo1 cs_demo2 readhb *.out *.a cs_demo3 cstcov_test cov.sort
96+
- $(RM) cs_demo1 cs_demo2 *.out *.a cs_demo3 cstcov_test cov.sort
10297
- $(RM) -r cs_*.c *.dSYM

CSparse/Tcov/covall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
./gcovs cs*.c |& awk -f cov.awk | sort -n > cov.out
33
sort -n cov.out > cov.sort
44
./covs *.gcov > covs.out
5-
echo -n "statments not yet tested: "
5+
echo -n "statements not yet tested: "
66
grep "#####" *gcov | wc -l
77
./cover *v > cover.out

0 commit comments

Comments
 (0)