File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 3
3
from setuptools .command .build_ext import build_ext
4
4
import sys
5
5
import setuptools
6
+ from sysconfig import get_config_var , get_paths
6
7
7
- __version__ = '0.0.0'
8
-
9
-
10
- class get_eigen_include (object ):
11
- """Includes eigen3 path """
12
8
13
- def __init__ (self , user = False ):
14
- self .user = user
15
-
16
- def __str__ (self ):
17
- import eigen3
18
- return eigen3 .get_include (self .user )
9
+ __version__ = '0.0.0'
19
10
11
+ def get_include (): #TODO
12
+ info = get_paths ()
13
+ Eigen_path = info ['include' ]+ '/../eigen3'
14
+ return Eigen_path
20
15
21
16
KR_module = [
22
17
Extension (
23
18
'KRBalancing' ,
24
19
['src/KRBalancing.cpp' ],
25
20
include_dirs = [
26
21
# Path to eigen3 headers
27
- get_eigen_include (),
28
- get_eigen_include (user = True )
22
+ get_include (),
29
23
],
30
24
language = 'c++'
31
25
),
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ class kr_balancing{
137
137
}// End of the inner 'while'
138
138
}
139
139
SparseMatrixR get_output (){
140
- std::cout << " export output" <<std::endl;
140
+ std::cout << " export output of shape " << A. cwiseProduct (x*x. transpose ()). rows () <<std::endl;
141
141
return A.cwiseProduct (x*x.transpose ());
142
142
}
143
143
private:
You can’t perform that action at this time.
0 commit comments