SparsedbleLU.h

Go to the documentation of this file.
00001 /*
00002 
00003 Copyright (C) 2004-2012 David Bateman
00004 Copyright (C) 1998-2004 Andy Adler
00005 
00006 This file is part of Octave.
00007 
00008 Octave is free software; you can redistribute it and/or modify it
00009 under the terms of the GNU General Public License as published by the
00010 Free Software Foundation; either version 3 of the License, or (at your
00011 option) any later version.
00012 
00013 Octave is distributed in the hope that it will be useful, but WITHOUT
00014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00015 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00016 for more details.
00017 
00018 You should have received a copy of the GNU General Public License
00019 along with Octave; see the file COPYING.  If not, see
00020 <http://www.gnu.org/licenses/>.
00021 
00022 */
00023 
00024 #if !defined (octave_sparse_LU_h)
00025 #define octave_sparse_LU_h 1
00026 
00027 #include "sparse-base-lu.h"
00028 #include "dSparse.h"
00029 
00030 class
00031 OCTAVE_API
00032 SparseLU : public sparse_base_lu <SparseMatrix, double, SparseMatrix, double>
00033 {
00034 public:
00035 
00036   SparseLU (void)
00037     : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> () { }
00038 
00039   SparseLU (const SparseMatrix& a, const Matrix& piv_thres = Matrix(),
00040             bool scale = false);
00041 
00042   SparseLU (const SparseMatrix& a, const ColumnVector& Qinit,
00043             const Matrix& piv_thres = Matrix(), bool scale = false,
00044             bool FixedQ = false, double droptol = -1.,
00045             bool milu = false, bool udiag = false);
00046 
00047   SparseLU (const SparseLU& a)
00048     : sparse_base_lu <SparseMatrix, double, SparseMatrix, double> (a) { }
00049 
00050   SparseLU& operator = (const SparseLU& a)
00051     {
00052       if (this != &a)
00053         sparse_base_lu <SparseMatrix, double, SparseMatrix, double>
00054           :: operator = (a);
00055 
00056       return *this;
00057     }
00058 
00059   ~SparseLU (void) { }
00060 };
00061 
00062 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines