Mercurial > octave
view liboctave/numeric/sparse-chol-inst.cc @ 21145:307096fb67e1
revamp sparse Cholesky factorization classes
* sparse-chol.h, sparse-chol.cc: Rename from sparse-base-chol.h and
sparse-base-chol.cc, respectively.
(class sparse_chol): Rename from sparse_base_chol. Incorporate code
from SparseCmplxCHOL and SparsedbleCHOL classes into the sparse_chol
template. Hide representation and HAVE_CHOLMOD macro from public
interface.
* sparse-chol-inst.cc: New file.
* SparseCmplxCHOL.cc, SparseCmplxCHOL.h, SparsedbleCHOL.cc,
SparsedbleCHOL.h: Delete.
* chol.cc, symbfact.cc, CSparse.cc, dSparse.cc, eigs-base.cc: Change
all uses of SparsedbleCHOL and SparseCmplxCHOL to use new
sparse_chol template class.
* liboctave/numeric/module.mk: Update.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 26 Jan 2016 16:30:54 -0500 |
parents | |
children |
line wrap: on
line source
/* Copyright (C) 2016 John W. Eaton This file is part of Octave. Octave is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Octave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Octave; see the file COPYING. If not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "sparse-chol.h" #include "sparse-chol.cc" template class sparse_chol<SparseMatrix>; template class sparse_chol<SparseComplexMatrix>; template SparseMatrix chol2inv<SparseMatrix> (const SparseMatrix& r); template SparseComplexMatrix chol2inv<SparseComplexMatrix> (const SparseComplexMatrix& r);