invert.cpp File Reference

Determines the generalized inverse matrix of an input matrix by using singular value decomposition. Used as frontend for metod g_inverse when using type "Array" instead of "Array2D". More...

#include <cmath>
#include <SharkDefs.h>
#include <LinAlg/LinAlg.h>

Go to the source code of this file.

Functions

Array< double > invert (const Array< double > &A)
 Returns the generalized inverse matrix of input matrix "A" by using singular value decomposition. Used as frontend for method g_inverse when using type "Array" instead of "Array2D".


Detailed Description

Determines the generalized inverse matrix of an input matrix by using singular value decomposition. Used as frontend for metod g_inverse when using type "Array" instead of "Array2D".

Author:
M. Kreutz
Date:
1998
Copyright (c) 1998-2000:
Institut für Neuroinformatik
Ruhr-Universität Bochum
D-44780 Bochum, Germany
Phone: +49-234-32-25558
Fax: +49-234-32-14209
eMail: Shark-admin@neuroinformatik.ruhr-uni-bochum.de
www: http://www.neuroinformatik.ruhr-uni-bochum.de



This file is part of Shark. This library 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 2, or (at your option) any later version.

This library 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 this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Definition in file invert.cpp.


Function Documentation

Array< double > invert ( const Array< double > &  A  ) 

Returns the generalized inverse matrix of input matrix "A" by using singular value decomposition. Used as frontend for method g_inverse when using type "Array" instead of "Array2D".

Returns the generalized inverse matrix of input matrix "A" by using singular value decomposition.

For a more exact description see documentation of method g_inverse. Here not only the usage of variable type "Array< double >" instead of "Array2D< double >" as storage for matrices is different, but also the resulting generalized inverse matrix is returned directly and not given back by assigning it to a second parameter.

Parameters:
A The input matrix.
Returns:
The generalized inverse matrix.
Exceptions:
SharkException the type of the exception will be "size mismatch" and indicates that A is not a square matrix
Author:
M. Kreutz
Date:
1998
Changes
none
Status
stable
See also:
g_inverse.cpp, svd.cpp

Definition at line 78 of file invert.cpp.

References g_inverse().