# HG changeset patch # User jwe # Date 1069101793 0 # Node ID ed92d574b55baae61fa576927168c1e1faa86e71 # Parent c0121a3b9cbe47b6e72256bd569bc5054540deba [project @ 2003-11-17 20:43:13 by jwe] diff -r c0121a3b9cbe -r ed92d574b55b scripts/ChangeLog --- a/scripts/ChangeLog Mon Nov 17 20:19:07 2003 +0000 +++ b/scripts/ChangeLog Mon Nov 17 20:43:13 2003 +0000 @@ -1,7 +1,14 @@ +2003-11-17 John W. Eaton + + * miscellaneous/path.m: Fix thinko in previous change. + 2003-11-14 Gabriele Pannocchia - * control/base/dare.m: - * control/base/dlqr.m: + * control/base/dare.m: Check positive (semi)definiteness and + dimensions of r (and q). + * control/base/dlqr.m: Check stabilizability of (A,B), + detectability of (A,Q), and whether (A,Q) has non minimal modes + near unit circle. * control/system/is_detectable.m: Use Hautus Lemma. Correct the behavior for discrete-time systems. diff -r c0121a3b9cbe -r ed92d574b55b scripts/miscellaneous/path.m --- a/scripts/miscellaneous/path.m Mon Nov 17 20:19:07 2003 +0000 +++ b/scripts/miscellaneous/path.m Mon Nov 17 20:43:13 2003 +0000 @@ -40,8 +40,9 @@ if (nargin == 0) if (nargout == 0) - puts ("\nLOADPATH contains the following directories:\n\n %s\n\n", - strrep (DEFAULT_LOADPATH, ":", "\n "); + puts ("\nLOADPATH contains the following directories:\n\n "); + puts (strrep (DEFAULT_LOADPATH, ":", "\n ")); + puts ("\n\n"); else p = LOADPATH; endif diff -r c0121a3b9cbe -r ed92d574b55b src/ChangeLog --- a/src/ChangeLog Mon Nov 17 20:19:07 2003 +0000 +++ b/src/ChangeLog Mon Nov 17 20:43:13 2003 +0000 @@ -1,5 +1,8 @@ 2003-11-17 John W. Eaton + * DLD-FUNCTIONS/qz.cc (qz): Use x.data()+offset instead of &a(i,j). + First and third args for dlag2 are const. + * DLD-FUNCTIONS/sort.cc (Fsort): Use const qualifier as appropriate. * DLD-FUNCTIONS/balance.cc (balance): Use data() instead of diff -r c0121a3b9cbe -r ed92d574b55b src/DLD-FUNCTIONS/qz.cc --- a/src/DLD-FUNCTIONS/qz.cc Mon Nov 17 20:19:07 2003 +0000 +++ b/src/DLD-FUNCTIONS/qz.cc Mon Nov 17 20:43:13 2003 +0000 @@ -107,7 +107,7 @@ F77_CHAR_ARG_LEN_DECL); F77_RET_T - F77_FUNC (dlag2, DLAG2) (double* A, const int& LDA, double* B, + F77_FUNC (dlag2, DLAG2) (const double* A, const int& LDA, const double* B, const int& LDB, const double& SAFMIN, double& SCALE1, double& SCALE2, double& WR1, double& WR2, double& WI); @@ -760,8 +760,10 @@ // fortran_vec instead of &aa(jj,jj) here. double scale1, scale2, wr1, wr2, wi; + const double *aa_ptr = aa.data () + jj*nn+jj; + const double *bb_ptr = bb.data () + jj*nn+jj; F77_XFCN (dlag2, DLAG2, - (&aa(jj,jj), nn, &bb(jj,jj), nn, safmin, + (aa_ptr, nn, bb_ptr, nn, safmin, scale1, scale2, wr1, wr2, wi)); #ifdef DEBUG_EIG