Image Interpolation with Contour Stencils
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
invmat.h File Reference

Invert matrix through QR decomposition. More...

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

Go to the source code of this file.

Functions

int InvertMatrix (double *InverseData, double *AData, int N)
 Invert matrix through QR decomposition. More...
 

Detailed Description

Invert matrix through QR decomposition.

Author
Pascal Getreuer getre.nosp@m.uer@.nosp@m.gmail.nosp@m..com

Copyright (c) 2010-2011, Pascal Getreuer All rights reserved.

This program is free software: you can use, modify and/or redistribute it under the terms of the simplified BSD License. You should have received a copy of this license along this program. If not, see http://www.opensource.org/licenses/bsd-license.html.

Definition in file invmat.h.

Function Documentation

int InvertMatrix ( double *  InverseData,
double *  AData,
int  N 
)

Invert matrix through QR decomposition.

Parameters
InverseDatapointer to memory for holding the result
ADatapointer to column-major matrix data
Nthe number of dimensions
Returns
1 on success, 0 on failure

The input data is overwritten during the computation. InverseData should be allocated before calling this function with space for at least N^2 doubles. Matrices are represented in column-major format, meaning A(i,j) = AData[i + N*j], 0 <= i, j < N.

Definition at line 33 of file invmat.c.

Here is the call graph for this function: