Mercurial > hg > octave-terminal
changeset 10905:9ee5a0a1b93d
Return permutation vector from QR as a row, not column, vector.
Fixes Bug #30832.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 21 Aug 2010 13:02:34 -0700 |
parents | 69a2e9ccb2fb |
children | e48a45b9a265 |
files | liboctave/ChangeLog liboctave/CmplxQRP.cc liboctave/CmplxQRP.h liboctave/dbleQRP.cc liboctave/dbleQRP.h liboctave/fCmplxQRP.cc liboctave/fCmplxQRP.h liboctave/floatQRP.cc liboctave/floatQRP.h |
diffstat | 9 files changed, 18 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,9 @@ +2010-08-21 Rik <octave@nomad.inbox5.com> + + * CmplxQRP.cc, CmplxQRP.h, dbleQRP.cc, dbleQRP.h, fCmplxQRP.cc, + fCmplxQRP.h, floatQRP.cc, floatQRP.h: Declare Pvec as RowVector, + not ColumnVector. Bug #30832. + 2010-08-18 Jaroslav Hajek <highegg@gmail.com> * mx-inlines.cc (mx_inline_all_finite): New check.
--- a/liboctave/CmplxQRP.cc +++ b/liboctave/CmplxQRP.cc @@ -97,10 +97,10 @@ form (n, afact, tau, qr_type); } -ColumnVector +RowVector ComplexQRP::Pvec (void) const { Array<double> pa (p.pvec ()); - ColumnVector pv (MArray<double> (pa) + 1.0); + RowVector pv (MArray<double> (pa) + 1.0); return pv; }
--- a/liboctave/CmplxQRP.h +++ b/liboctave/CmplxQRP.h @@ -58,7 +58,7 @@ PermMatrix P (void) const { return p; } - ColumnVector Pvec (void) const; + RowVector Pvec (void) const; friend std::ostream& operator << (std::ostream&, const ComplexQRP&);
--- a/liboctave/dbleQRP.cc +++ b/liboctave/dbleQRP.cc @@ -95,10 +95,10 @@ form (n, afact, tau, qr_type); } -ColumnVector +RowVector QRP::Pvec (void) const { Array<double> pa (p.pvec ()); - ColumnVector pv (MArray<double> (pa) + 1.0); + RowVector pv (MArray<double> (pa) + 1.0); return pv; }
--- a/liboctave/dbleQRP.h +++ b/liboctave/dbleQRP.h @@ -59,7 +59,7 @@ PermMatrix P (void) const { return p; } - ColumnVector Pvec (void) const; + RowVector Pvec (void) const; friend std::ostream& operator << (std::ostream&, const QRP&);
--- a/liboctave/fCmplxQRP.cc +++ b/liboctave/fCmplxQRP.cc @@ -97,10 +97,10 @@ form (n, afact, tau, qr_type); } -FloatColumnVector +FloatRowVector FloatComplexQRP::Pvec (void) const { Array<float> pa (p.pvec ()); - FloatColumnVector pv (MArray<float> (pa) + 1.0f); + FloatRowVector pv (MArray<float> (pa) + 1.0f); return pv; }
--- a/liboctave/fCmplxQRP.h +++ b/liboctave/fCmplxQRP.h @@ -58,7 +58,7 @@ PermMatrix P (void) const { return p; } - FloatColumnVector Pvec (void) const; + FloatRowVector Pvec (void) const; friend std::ostream& operator << (std::ostream&, const FloatComplexQRP&);
--- a/liboctave/floatQRP.cc +++ b/liboctave/floatQRP.cc @@ -95,10 +95,10 @@ form (n, afact, tau, qr_type); } -FloatColumnVector +FloatRowVector FloatQRP::Pvec (void) const { Array<float> pa (p.pvec ()); - FloatColumnVector pv (MArray<float> (pa) + 1.0f); + FloatRowVector pv (MArray<float> (pa) + 1.0f); return pv; }