OpenJPEG: INVERT - Implementation of a matrix inversion

OpenJPEG 2.1.2

INVERT - Implementation of a matrix inversion

## Exported functions
OPJ_BOOL | opj_matrix_inversion_f (OPJ_FLOAT32 *pSrcMatrix, OPJ_FLOAT32 *pDestMatrix, OPJ_UINT32 nb_compo)
| Calculates a n x n double matrix inversion with a LUP method. More...

## Detailed Description

## Function Documentation

## § opj_matrix_inversion_f()

OPJ_BOOL opj_matrix_inversion_f | ( | OPJ_FLOAT32 * | pSrcMatrix,
|  | OPJ_FLOAT32 * | pDestMatrix,
|  | OPJ_UINT32 | nb_compo
| ) |  |

Calculates a n x n double matrix inversion with a LUP method.

Data is aligned, rows after rows (or columns after columns). The function does not take ownership of any memory block, data must be fred by the user.

Parameters

  pSrcMatrix | the matrix to invert.
  pDestMatrix | data to store the inverted matrix.
  n | size of the matrix

Returns
  OPJ_TRUE if the inversion is successful, OPJ_FALSE if the matrix is singular.

Calculates a n x n double matrix inversion with a LUP method.

References OPJ_FALSE, opj_free(), opj_lupDecompose(), opj_lupInvert(), opj_malloc(), and OPJ_TRUE.

Referenced by opj_j2k_setup_encoder().