[Pkg-octave-commit] [octave-statistics] 03/04: princomp-one-arg.patch: new patch, fixes princomp with only one arg.

Sébastien Villemot sebastien at debian.org
Sun Feb 2 09:18:39 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastien pushed a commit to branch master
in repository octave-statistics.

commit 33910d8e8e41e1c7b80fc6a81ead96126e3f4c5f
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Sun Feb 2 10:09:21 2014 +0100

    princomp-one-arg.patch: new patch, fixes princomp with only one arg.
    
    Closes: #731992
---
 debian/patches/princomp-one-arg.patch | 24 ++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/princomp-one-arg.patch b/debian/patches/princomp-one-arg.patch
new file mode 100644
index 0000000..69e2743
--- /dev/null
+++ b/debian/patches/princomp-one-arg.patch
@@ -0,0 +1,24 @@
+Description: Make princomp work with nargout < 2.
+Origin: upstream, http://sourceforge.net/p/octave/code/12532/
+Bug: https://savannah.gnu.org/bugs/index.php?40893
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731992
+Last-Update: 2014-02-02
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/inst/princomp.m
++++ b/inst/princomp.m
+@@ -99,10 +99,11 @@ function [COEFF,SCORE,latent,tsquare] =
+ 
+     endif
+ 
+-    # This is the same as the eigenvalues of the covariance matrix of X
+-    latent  = (diag(S'*S)/(size(Xcentered,1)-1))(1:r);
+-
+     if nargout > 2
++
++      # This is the same as the eigenvalues of the covariance matrix of X
++      latent  = (diag(S'*S)/(size(Xcentered,1)-1))(1:r);
++
+       if !(nargin == 2 && strcmpi ( varargin{:} , "econ"))
+ 	  latent= [latent;zeros(nvars-r,1)];
+       endif
diff --git a/debian/patches/series b/debian/patches/series
index ae1e6cc..ad0bf7f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 data-files-for-tests.diff
 autoload-yes.patch
 expose-tbl-delim-tests.patch
+princomp-one-arg.patch

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-statistics.git



More information about the Pkg-octave-commit mailing list