library of assembled shared sources

http://lass.cocamware.com

matrix_solve.inl File Reference

#include "../num_common.h"
#include "matrix_solve.h"

Include dependency graph for matrix_solve.inl:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  lass
 Library for Assembled Shared Sources.
namespace  lass::num
 numeric types and traits.
namespace  lass::num::impl

Functions

template<typename T , typename RandomIterator1 , typename RandomIterator2 >
bool lass::num::impl::ludecomp (RandomIterator1 ioMatrix, RandomIterator2 oIndex, size_t iSize, int &iD)
 Given a complex matrix iA, this routine replaces it by the LU decomposition of a rowwise permutation of itself.
template<typename T , typename RandomIterator1 , typename RandomIterator2 , typename RandomIterator3 >
void lass::num::impl::lusolve (RandomIterator1 iMatrix, RandomIterator2 iIndex, RandomIterator3 ioColumn, size_t iSize)
 Solves the set of linear eqautions A X = B.
template<typename T , typename RandomIterator1 , typename RandomIterator2 , typename RandomIterator3 , typename RandomIterator4 , typename RandomIterator5 >
void lass::num::impl::lumprove (RandomIterator1 iMatrix, RandomIterator2 iMatrixLU, RandomIterator3 iIndex, RandomIterator4 iColumn, RandomIterator5 ioX, size_t iSize)
 Improves a solution vector X of the linear set of equations A X = B.
template<typename T , typename RandomIterator1 , typename RandomIterator2 >
bool lass::num::impl::cramer2 (RandomIterator1 iMatrixRowMajor, RandomIterator2 ioColumnFirst, RandomIterator2 ioColumnLast)
 Solve A X = B for 2x2 matrices with Cramer's rule.
template<typename T , typename RandomIterator1 , typename RandomIterator2 >
bool lass::num::impl::cramer3 (RandomIterator1 iMatrixRowMajor, RandomIterator2 ioColumnFirst, RandomIterator2 ioColumnLast)
 Solve A X = B for 3x3 matrices with Cramer's rule.
template<typename T , typename RandomIterator1 , typename RandomIterator2 , typename RandomIterator3 >
bool lass::num::impl::solveTridiagonal (RandomIterator1 iA, RandomIterator1 iB, RandomIterator1 iC, RandomIterator2 ioSolution, RandomIterator3 ioTemp, std::size_t iSize)
 Solve system of linear equations with a tridiagonal matrix.


Detailed Description

Author:
Bram de Greve (bramz@users.sourceforge.net)

Tom De Muer (tomdemuer@users.sourceforge.net)

*** BEGIN LICENSE INFORMATION ***

The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://lass.sourceforge.net/cpal-license. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The Original Code is LASS - Library of Assembled Shared Sources.

The Initial Developer of the Original Code is Bram de Greve and Tom De Muer. The Original Developer is the Initial Developer.

All portions of the code written by the Initial Developer are: Copyright (C) 2004-2007 the Initial Developer. All Rights Reserved.

Contributor(s):

Alternatively, the contents of this file may be used under the terms of the GNU General Public License Version 2 or later (the GPL), in which case the provisions of GPL are applicable instead of those above. If you wish to allow use of your version of this file only under the terms of the GPL and not to allow others to use your version of this file under the CPAL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the GPL License. If you do not delete the provisions above, a recipient may use your version of this file under either the CPAL or the GPL.

*** END LICENSE INFORMATION ***

Definition in file matrix_solve.inl.


Generated on Mon Nov 10 14:22:04 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo