forked from QuTech-Delft/OpenQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsparse-checkout.sh
More file actions
executable file
·36 lines (32 loc) · 1.06 KB
/
Copy pathsparse-checkout.sh
File metadata and controls
executable file
·36 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
# alternative to the --checkout option for `git submodule update`
# sets up shallow checkout of the `MyMod` directory in the repo
S=$(git rev-parse --git-dir)/modules/deps/eigen/info/sparse-checkout
#clear contents
: > $S
#include <unsupported/Eigen/MatrixFunctions>
# #include <Eigen/src/misc/lapacke.h>
echo 'unsupported/Eigen/MatrixFunctions' >>$S
echo 'unsupported/Eigen/src/MatrixFunctions' >>$S
echo 'Eigen/Core' >> $S
echo 'Eigen/LU' >> $S
echo 'Eigen/Eigenvalues' >> $S
echo 'Eigen/Householder' >> $S
echo 'Eigen/Cholesky' >> $S
echo 'Eigen/Jacobi' >> $S
echo 'Eigen/Geometry' >> $S
echo 'Eigen/SVD' >> $S
echo 'Eigen/QR' >> $S
echo 'Eigen/src/Core' >> $S
echo 'Eigen/src/plugins' >> $S
echo 'Eigen/src/LU' >> $S
echo 'Eigen/src/Eigenvalues' >> $S
echo 'Eigen/src/misc' >> $S
echo 'Eigen/src/Cholesky' >> $S
echo 'Eigen/src/Jacobi' >> $S
echo 'Eigen/src/Householder' >> $S
echo 'Eigen/src/Geometry' >> $S
echo 'Eigen/src/SVD' >> $S
echo 'Eigen/src/QR' >> $S
git -C deps/eigen config core.sparsecheckout true
git submodule update --force --checkout deps/eigen