Skip to content

Commit 1297330

Browse files
authored
Update scMF.cpp
1 parent 9d72596 commit 1297330

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scMF.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ SEXP scMF_cpp(SEXP Xin, SEXP Win, SEXP Hin, SEXP criteriain, SEXP rhoin, SEXP nu
8181
cbrt( C(i,j) - sqrt(D(i,j))) -
8282
A(i,j)/3.0;
8383
}else{
84-
Xprime(i,j) = 2.0*sqrt( -B(i,j))*
85-
cos( acos(C(i,j)/sqrt(-B(i,j)*B(i,j)*B(i,j))) /3.0 ) -
84+
Xprime(i,j) = 2.0*sqrt( -B(i,j))*cos( acos(C(i,j)/sqrt(-B(i,j)*B(i,j)*B(i,j))) /3.0 ) -
8685
A(i,j)/3.0;
8786
}
8887

8988
}
9089
}
91-
}else if(criteria == 2){
90+
}else if(criteria == 2){// *lee's multiplicative update with least square loss
9291
cout<<"add it later ..." <<endl;
9392
}
9493

0 commit comments

Comments
 (0)