We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e470515 commit bd7ecb4Copy full SHA for bd7ecb4
src/krbalancing.cpp
@@ -6,11 +6,11 @@ kr_balancing::kr_balancing(const SparseMatrixCol & input){
6
e.resize(A.rows(),1);
7
e.setOnes();
8
/*Replace zeros with 0.00001 on the main diagonal*/
9
- //SparseMatrixCol I;
10
- //I.resize(A.rows(),A.cols());
11
- //I.setIdentity();
12
- //I = I*0.00001;
13
- //A = A + I;
+ SparseMatrixCol I;
+ I.resize(A.rows(),A.cols());
+ I.setIdentity();
+ I = I*0.00001;
+ A = A + I;
14
}
15
16
0 commit comments