Add more changes to sparse patch.

This commit is contained in:
Quentin Spencer 2006-03-24 14:25:50 +00:00
parent c6b0f7f038
commit e2944b0fa2
2 changed files with 90 additions and 1 deletions

View File

@ -59,3 +59,89 @@ diff -u -r1.2 SparseQR.h
#endif #endif
/* /*
Index: liboctave/CSparse.cc
===================================================================
RCS file: /cvs/octave/liboctave/CSparse.cc,v
retrieving revision 1.22
diff -u -r1.22 CSparse.cc
--- liboctave/CSparse.cc 22 Mar 2006 22:58:12 -0000 1.22
+++ liboctave/CSparse.cc 24 Mar 2006 14:23:38 -0000
@@ -4273,7 +4273,7 @@
// Calculate the norm of the matrix, for later use.
double anorm;
if (calc_cond)
- anorm = m_band.abs().sum().row(0).max();
+ anorm = m_band.abs().sum().row(static_cast<octave_idx_type>(0)).max();
char job = 'L';
F77_XFCN (zpbtrf, ZPBTRF, (F77_CONST_CHAR_ARG2 (&job, 1),
@@ -4548,7 +4548,7 @@
// Calculate the norm of the matrix, for later use.
double anorm;
if (calc_cond)
- anorm = m_band.abs().sum().row(0).max();
+ anorm = m_band.abs().sum().row(static_cast<octave_idx_type>(0)).max();
char job = 'L';
F77_XFCN (zpbtrf, ZPBTRF, (F77_CONST_CHAR_ARG2 (&job, 1),
@@ -4899,7 +4899,7 @@
// Calculate the norm of the matrix, for later use.
double anorm;
if (calc_cond)
- anorm = m_band.abs().sum().row(0).max();
+ anorm = m_band.abs().sum().row(static_cast<octave_idx_type>(0)).max();
char job = 'L';
F77_XFCN (zpbtrf, ZPBTRF, (F77_CONST_CHAR_ARG2 (&job, 1),
@@ -5176,7 +5176,7 @@
// Calculate the norm of the matrix, for later use.
double anorm;
if (calc_cond)
- anorm = m_band.abs().sum().row(0).max();
+ anorm = m_band.abs().sum().row(static_cast<octave_idx_type>(0)).max();
char job = 'L';
F77_XFCN (zpbtrf, ZPBTRF, (F77_CONST_CHAR_ARG2 (&job, 1),
Index: liboctave/dSparse.cc
===================================================================
RCS file: /cvs/octave/liboctave/dSparse.cc,v
retrieving revision 1.21
diff -u -r1.21 dSparse.cc
--- liboctave/dSparse.cc 22 Mar 2006 22:58:12 -0000 1.21
+++ liboctave/dSparse.cc 24 Mar 2006 14:23:39 -0000
@@ -4376,7 +4376,7 @@
// Calculate the norm of the matrix, for later use.
double anorm;
if (calc_cond)
- anorm = m_band.abs().sum().row(0).max();
+ anorm = m_band.abs().sum().row(static_cast<octave_idx_type>(0)).max();
char job = 'L';
F77_XFCN (dpbtrf, DPBTRF, (F77_CONST_CHAR_ARG2 (&job, 1),
@@ -4652,7 +4652,7 @@
// Calculate the norm of the matrix, for later use.
double anorm;
if (calc_cond)
- anorm = m_band.abs().sum().row(0).max();
+ anorm = m_band.abs().sum().row(static_cast<octave_idx_type>(0)).max();
char job = 'L';
F77_XFCN (dpbtrf, DPBTRF, (F77_CONST_CHAR_ARG2 (&job, 1),
@@ -5003,7 +5003,7 @@
// Calculate the norm of the matrix, for later use.
double anorm;
if (calc_cond)
- anorm = m_band.abs().sum().row(0).max();
+ anorm = m_band.abs().sum().row(static_cast<octave_idx_type>(0)).max();
char job = 'L';
F77_XFCN (dpbtrf, DPBTRF, (F77_CONST_CHAR_ARG2 (&job, 1),
@@ -5350,7 +5350,7 @@
// Calculate the norm of the matrix, for later use.
double anorm;
if (calc_cond)
- anorm = m_band.abs().sum().row(0).max();
+ anorm = m_band.abs().sum().row(static_cast<octave_idx_type>(0)).max();
char job = 'L';
F77_XFCN (dpbtrf, DPBTRF, (F77_CONST_CHAR_ARG2 (&job, 1),

View File

@ -1,6 +1,6 @@
Name: octave Name: octave
Version: 2.9.5 Version: 2.9.5
Release: 1%{?dist} Release: 2%{?dist}
Summary: A high-level language for numerical computations Summary: A high-level language for numerical computations
Epoch: 6 Epoch: 6
@ -133,6 +133,9 @@ fi
%changelog %changelog
* Fri Mar 24 2006 Quentin Spencer <qspencer@users.sourceforge.net> 2.9.5-2
- Add more changes to sparse patch.
* Thu Mar 23 2006 Quentin Spencer <qspencer@users.sourceforge.net> 2.9.5-1 * Thu Mar 23 2006 Quentin Spencer <qspencer@users.sourceforge.net> 2.9.5-1
- New upstream release; remove old patches; add sparse patch. - New upstream release; remove old patches; add sparse patch.
- Add gcc-c++ as dependency for devel package. - Add gcc-c++ as dependency for devel package.