fmatvec  0.0.0
sparse_linear_algebra_double.h
1/* Copyright (C) 2003-2022 Martin Förg
2
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 *
17 * Contact:
18 * martin.o.foerg@googlemail.com
19 *
20 */
21
22#ifndef sparse_linear_algebra_double_h
23#define sparse_linear_algebra_double_h
24
25#include "vector.h"
26
27namespace fmatvec {
28
38 FMATVEC_EXPORT Vector<Ref, double> slvLU(const Matrix<SymmetricSparse, Ref, Ref, double> &A, const Vector<Ref, double> &x);
39
49 FMATVEC_EXPORT Matrix<General, Ref, Ref, double> slvLU(const Matrix<SymmetricSparse, Ref, Ref, double> &A, const Matrix<General, Ref, Ref, double> &X);
50
62 FMATVEC_EXPORT int eigvec(const Matrix<SymmetricSparse, Ref, Ref, double> &A, const Matrix<SymmetricSparse, Ref, Ref, double> &M, int nev, double sigma, Matrix<General, Ref, Ref, double> &eigenvectors, Vector<Ref, double> &eigenvalues, double tol_=0);
63}
64
65#endif
Namespace fmatvec.
Definition: _memory.cc:28
int eigvec(const SquareMatrix< Ref, double > &A, SquareMatrix< Ref, std::complex< double > > &V, Vector< Ref, std::complex< double > > &w)
Eigenvectors and Eigenvalues.
Definition: linear_algebra_double.cc:715
Vector< Ref, std::complex< double > > slvLU(const SquareMatrix< Ref, std::complex< double > > &A, const Vector< Ref, std::complex< double > > &x)
System of linear equations.
Definition: linear_algebra_complex.cc:47