changeset 11757:429d7280eac7 octave-forge

nmf_bpas: respect verbosity option (Bug #39184)
author carandraug
date Fri, 07 Jun 2013 15:10:19 +0000
parents a9d1f82e4f62
children d79300686065
files main/linear-algebra/NEWS main/linear-algebra/inst/nmf_bpas.m
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main/linear-algebra/NEWS	Fri Jun 07 15:00:39 2013 +0000
+++ b/main/linear-algebra/NEWS	Fri Jun 07 15:10:19 2013 +0000
@@ -5,6 +5,8 @@
       nmf_pg doesn't use text_waitbar by default. Miscellanoues package is
       not required.
 
+      nmf_bpas now respects the verbose option
+
  ** Makefile fixed to work with non-standard linker options e.g on
     Apple.
 
--- a/main/linear-algebra/inst/nmf_bpas.m	Fri Jun 07 15:00:39 2013 +0000
+++ b/main/linear-algebra/inst/nmf_bpas.m	Fri Jun 07 15:10:19 2013 +0000
@@ -163,7 +163,9 @@
 ###
 
 # Verbosity
-  display(par);
+  if (par.verbose)
+    display (par);
+  endif
 ### Done till here Sun Mar 25 19:00:26 2012
 
     HIS = 0;
@@ -271,7 +273,9 @@
     final.relative_error = norm(A-W*H,'fro')/norm(A,'fro');
     final.W_density = length(find(W>0))/(m*k);
     final.H_density = length(find(H>0))/(n*k);
-    display(final);
+    if (par.verbose)
+      display (final);
+    endif
 
 endfunction