root/win32/itpp-4.0.1/itpp/base/algebra/inv.h @ 44

Revision 35, 2.6 kB (checked in by mido, 16 years ago)

zasadni zmeny ve /win32

Line 
1/*!
2 * \file
3 * \brief Definitions of matrix inversion routines
4 * \author Tony Ottosson
5 *
6 * -------------------------------------------------------------------------
7 *
8 * IT++ - C++ library of mathematical, signal processing, speech processing,
9 *        and communications classes and functions
10 *
11 * Copyright (C) 1995-2007  (see AUTHORS file for a list of contributors)
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 *
27 * -------------------------------------------------------------------------
28 */
29
30#ifndef INV_H
31#define INV_H
32
33#include <itpp/base/mat.h>
34
35
36namespace itpp {
37
38  /*!
39    \brief Inverse of real square matrix.
40    \ingroup inverse
41
42    Calculate the inverse of the real matrix \f$\mathbf{X}\f$
43
44    Solves the equation system \f$ \mathbf{Y} \mathbf{X} = \mathbf{I}\f$ using LU-factorization.
45    IT++ needs to be compiled with the LAPACK for the inverse to be available.
46  */
47  bool inv(const mat &X, mat &Y);
48
49  /*!
50    \brief Inverse of real square matrix.
51    \ingroup inverse
52
53    Calculate the inverse of the real matrix \f$\mathbf{X}\f$
54
55    Solves the equation system \f$ \mathbf{Y} \mathbf{X} = \mathbf{I}\f$ using LU-factorization.
56    IT++ needs to be compiled with LAPACK support for the inverse to be available.
57  */
58  mat inv(const mat &X);
59
60
61  /*!
62    \brief Inverse of complex square matrix.
63    \ingroup inverse
64
65    Calculate the inverse of the complex matrix \f$\mathbf{X}\f$
66
67    Solves the equation system \f$ \mathbf{Y} \mathbf{X} = \mathbf{I}\f$ using LU-factorization.
68    IT++ needs to be compiled with LAPACK support for the inverse to be available.
69  */
70  bool inv(const cmat &X, cmat &Y);
71
72  /*!
73    \brief Inverse of real square matrix.
74    \ingroup inverse
75
76    Calculate the inverse of the complex matrix \f$\mathbf{X}\f$
77
78    Solves the equation system \f$ \mathbf{Y} \mathbf{X} = \mathbf{I}\f$ using LU-factorization.
79    IT++ needs to be compiled with the LAPACK for the inverse to be available.
80  */
81  cmat inv(const cmat &X);
82
83
84} // namespace itpp
85
86#endif // #ifndef INV_H
Note: See TracBrowser for help on using the browser.