Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /inst/scale_data.m [d09c21] .. [41a2fe] Maximize Restore

  Switch to side-by-side view

--- a/inst/scale_data.m
+++ b/inst/scale_data.m
@@ -38,7 +38,7 @@
 		# don't take out mean if the column is a constant, to preserve identification
 		b = b .* test;
 		b = A*b;
-		bb = dmult(b, ones(k,n))';
+		bb = (diag(b) * ones(k,n))';
 	endif
 	zz = z*A + bb;
 	scalecoefs = {A,b};