#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". | |
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.
| 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.
| A | The input matrix. |
| SharkException | the type of the exception will be "size mismatch" and indicates that A is not a square matrix |
Definition at line 78 of file invert.cpp.
References g_inverse().