# HG changeset patch # User John W. Eaton # Date 1234974031 18000 # Node ID f3ff420fccf7d86a8c1eec9fb38615d72e21f61d # Parent 19a3769fe716a86c4dfcfdfa064b2ab2f71ade11 eliminate some unused static variables and functions diff -r 19a3769fe716 -r f3ff420fccf7 liboctave/CMatrix.cc --- a/liboctave/CMatrix.cc Wed Feb 18 11:15:13 2009 -0500 +++ b/liboctave/CMatrix.cc Wed Feb 18 11:20:31 2009 -0500 @@ -2875,28 +2875,6 @@ return retval; } -// Constants for matrix exponential calculation. - -static double padec [] = -{ - 5.0000000000000000e-1, - 1.1666666666666667e-1, - 1.6666666666666667e-2, - 1.6025641025641026e-3, - 1.0683760683760684e-4, - 4.8562548562548563e-6, - 1.3875013875013875e-7, - 1.9270852604185938e-9, -}; - -static void -solve_singularity_warning (double rcon) -{ - (*current_liboctave_warning_handler) - ("singular matrix encountered in expm calculation, rcond = %g", - rcon); -} - // column vector by row vector -> matrix operations ComplexMatrix diff -r 19a3769fe716 -r f3ff420fccf7 liboctave/ChangeLog --- a/liboctave/ChangeLog Wed Feb 18 11:15:13 2009 -0500 +++ b/liboctave/ChangeLog Wed Feb 18 11:20:31 2009 -0500 @@ -1,3 +1,11 @@ +2009-02-18 John W. Eaton + + * dMatrix.cc (padec, solve_singularity_warning): Delete unused + static variable and function. + * CMatrix.cc (padec, solve_singularity_warning): Ditto. + * fMatrix.cc (padec, solve_singularity_warning): Ditto. + * fCMatrix.cc (padec, solve_singularity_warning): Ditto. + 2009-02-18 Jaroslav Hajek * Array.cc (Array::resize (const dim_vector&)): Check for negative diff -r 19a3769fe716 -r f3ff420fccf7 liboctave/dMatrix.cc --- a/liboctave/dMatrix.cc Wed Feb 18 11:15:13 2009 -0500 +++ b/liboctave/dMatrix.cc Wed Feb 18 11:20:31 2009 -0500 @@ -2520,28 +2520,6 @@ return tmp.lssolve (b, info, rank, rcon); } -// Constants for matrix exponential calculation. - -static double padec [] = -{ - 5.0000000000000000e-1, - 1.1666666666666667e-1, - 1.6666666666666667e-2, - 1.6025641025641026e-3, - 1.0683760683760684e-4, - 4.8562548562548563e-6, - 1.3875013875013875e-7, - 1.9270852604185938e-9, -}; - -static void -solve_singularity_warning (double rcon) -{ - (*current_liboctave_warning_handler) - ("singular matrix encountered in expm calculation, rcond = %g", - rcon); -} - Matrix& Matrix::operator += (const DiagMatrix& a) { diff -r 19a3769fe716 -r f3ff420fccf7 liboctave/fCMatrix.cc --- a/liboctave/fCMatrix.cc Wed Feb 18 11:15:13 2009 -0500 +++ b/liboctave/fCMatrix.cc Wed Feb 18 11:20:31 2009 -0500 @@ -2869,28 +2869,6 @@ return retval; } -// Constants for matrix exponential calculation. - -static float padec [] = -{ - 5.0000000000000000e-1, - 1.1666666666666667e-1, - 1.6666666666666667e-2, - 1.6025641025641026e-3, - 1.0683760683760684e-4, - 4.8562548562548563e-6, - 1.3875013875013875e-7, - 1.9270852604185938e-9, -}; - -static void -solve_singularity_warning (float rcon) -{ - (*current_liboctave_warning_handler) - ("singular matrix encountered in expm calculation, rcond = %g", - rcon); -} - // column vector by row vector -> matrix operations FloatComplexMatrix diff -r 19a3769fe716 -r f3ff420fccf7 liboctave/fMatrix.cc --- a/liboctave/fMatrix.cc Wed Feb 18 11:15:13 2009 -0500 +++ b/liboctave/fMatrix.cc Wed Feb 18 11:20:31 2009 -0500 @@ -2519,28 +2519,6 @@ return tmp.lssolve (b, info, rank, rcon); } -// Constants for matrix exponential calculation. - -static float padec [] = -{ - 5.0000000000000000e-1, - 1.1666666666666667e-1, - 1.6666666666666667e-2, - 1.6025641025641026e-3, - 1.0683760683760684e-4, - 4.8562548562548563e-6, - 1.3875013875013875e-7, - 1.9270852604185938e-9, -}; - -static void -solve_singularity_warning (float rcon) -{ - (*current_liboctave_warning_handler) - ("singular matrix encountered in expm calculation, rcond = %g", - rcon); -} - FloatMatrix& FloatMatrix::operator += (const FloatDiagMatrix& a) {