Mercurial > octave
diff liboctave/numeric/eigs-base.cc @ 21146:ea9c05014809
revamp sparse LU factorization classes
* sparse-lu.h, sparse-lu.cc: Rename from sparse-base-lu.h and
sparse-base-lu.cc, respectively.
(class sparse_lu): Rename from sparse_base_lu. Incorporate code
from SparseCmplxLU and SparsedbleLU classes into the sparse_lu
template.
* sparse-lu-inst.cc: New file.
* SparseCmplxLU.cc, SparseCmplxLU.h, SparsedbleLU.cc, SparsedbleLU.h:
Delete.
* lu.cc, luinc.cc, CSparse.cc, dSparse.cc, eigs-base.cc: Change
all uses of SparsedbleLU and SparseCmplxLU to use new
sparse_lu template class.
* liboctave/numeric/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 28 Jan 2016 00:15:33 -0500 |
parents | 307096fb67e1 |
children | 7962dbca527f |
line wrap: on
line diff
--- a/liboctave/numeric/eigs-base.cc Tue Jan 26 16:30:54 2016 -0500 +++ b/liboctave/numeric/eigs-base.cc Thu Jan 28 00:15:33 2016 -0500 @@ -32,8 +32,7 @@ #include "f77-fcn.h" #include "oct-locbuf.h" #include "quit.h" -#include "SparsedbleLU.h" -#include "SparseCmplxLU.h" +#include "sparse-lu.h" #include "dSparse.h" #include "CSparse.h" #include "MatrixType.h" @@ -473,7 +472,7 @@ AminusSigmaB -= sigmat; } - SparseLU fact (AminusSigmaB); + sparse_lu<SparseMatrix> fact (AminusSigmaB); L = fact.L (); U = fact.U (); @@ -637,7 +636,7 @@ AminusSigmaB -= sigmat; } - SparseComplexLU fact (AminusSigmaB); + sparse_lu<SparseComplexMatrix> fact (AminusSigmaB); L = fact.L (); U = fact.U ();