Solution of a system of linear equations Ax=b with tridiagonal matrix A. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | tri_sle (a0, a1, a2, x, b, n_rows) |
Solution of a system of linear equations Ax=b with tridiagonal matrix A. |
Solution of a system of linear equations Ax=b with tridiagonal matrix A.
Copyright 2010-2013 Ralf Greve, Bjoern Grieger, Oliver J. Stenzel
This file is part of MAIC-2.
MAIC-2 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.
MAIC-2 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 MAIC-2. If not, see http://www.gnu.org/licenses/.
Definition in file tri_sle.F90.
subroutine tri_sle | ( | real(dp), dimension(0:*), intent(inout) | a0, |
real(dp), dimension(0:*), intent(inout) | a1, | ||
real(dp), dimension(0:*), intent(inout) | a2, | ||
real(dp), dimension(0:*), intent(out) | x, | ||
real(dp), dimension(0:*), intent(inout) | b, | ||
integer(i4b), intent(in) | n_rows | ||
) |
Solution of a system of linear equations Ax=b with tridiagonal matrix A.
[in] | a0 | a0(j) is element A_(j,j-1) of matrix A |
[in] | a1 | a1(j) is element A_(j,j) of matrix A |
[in] | a2 | a2(j) is element A_(j,j+1) of matrix A |
[in] | b | inhomogeneity vector |
[in] | n_rows | size of matrix A (indices run from 0 (!!!) to n_rows) |
[out] | x | solution vector. |
Definition at line 41 of file tri_sle.F90.