CMSIS DSP library

Dependents:   performance_timer Surfboard_ gps2rtty Capstone ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Revision:
2:da51fb522205
Parent:
1:fdd22bb7aa52
Child:
3:7a284390b0ce
--- a/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f32.c	Wed Nov 28 12:30:09 2012 +0000
+++ b/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f32.c	Thu May 30 17:10:11 2013 +0100
@@ -2,12 +2,12 @@
 * Copyright (C) 2010 ARM Limited. All rights reserved.    
 *    
 * $Date:        15. February 2012  
-* $Revision:     V1.1.0  
+* $Revision: 	V1.1.0  
 *    
-* Project:         CMSIS DSP Library    
-* Title:        arm_mat_inverse_f32.c    
+* Project: 	    CMSIS DSP Library    
+* Title:	    arm_mat_inverse_f32.c    
 *    
-* Description:    Floating-point matrix inverse.    
+* Description:	Floating-point matrix inverse.    
 *    
 * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
 *  
@@ -67,7 +67,7 @@
  * @brief Floating-point matrix inverse.    
  * @param[in]       *pSrc points to input matrix structure    
  * @param[out]      *pDst points to output matrix structure    
- * @return             The function returns    
+ * @return     		The function returns    
  * <code>ARM_MATH_SIZE_MISMATCH</code> if the input matrix is not square or if the size    
  * of the output matrix does not match the size of the input matrix.    
  * If the input matrix is found to be singular (non-invertible), then the function returns    
@@ -110,39 +110,39 @@
   {
 
     /*--------------------------------------------------------------------------------------------------------------    
-     * Matrix Inverse can be solved using elementary row operations.    
-     *    
-     *    Gauss-Jordan Method:    
-     *    
-     *       1. First combine the identity matrix and the input matrix separated by a bar to form an    
-     *        augmented matrix as follows:    
-     *                        _                      _         _           _    
-     *                       |  a11  a12 | 1   0  |       |  X11 X12  |    
-     *                       |           |        |   =   |           |    
-     *                       |_ a21  a22 | 0   1 _|       |_ X21 X21 _|    
-     *    
-     *        2. In our implementation, pDst Matrix is used as identity matrix.    
-     *    
-     *        3. Begin with the first row. Let i = 1.    
-     *    
-     *        4. Check to see if the pivot for row i is zero.    
-     *           The pivot is the element of the main diagonal that is on the current row.    
-     *           For instance, if working with row i, then the pivot element is aii.    
-     *           If the pivot is zero, exchange that row with a row below it that does not    
-     *           contain a zero in column i. If this is not possible, then an inverse    
-     *           to that matrix does not exist.    
-     *    
-     *        5. Divide every element of row i by the pivot.    
-     *    
-     *        6. For every row below and  row i, replace that row with the sum of that row and    
-     *           a multiple of row i so that each new element in column i below row i is zero.    
-     *    
-     *        7. Move to the next row and column and repeat steps 2 through 5 until you have zeros    
-     *           for every element below and above the main diagonal.    
-     *    
-     *        8. Now an identical matrix is formed to the left of the bar(input matrix, pSrc).    
-     *           Therefore, the matrix to the right of the bar is our solution(pDst matrix, pDst).    
-     *----------------------------------------------------------------------------------------------------------------*/
+	 * Matrix Inverse can be solved using elementary row operations.    
+	 *    
+	 *	Gauss-Jordan Method:    
+	 *    
+	 *	   1. First combine the identity matrix and the input matrix separated by a bar to form an    
+	 *        augmented matrix as follows:    
+	 *				        _ 	      	       _         _	       _    
+	 *					   |  a11  a12 | 1   0  |       |  X11 X12  |    
+	 *					   |           |        |   =   |           |    
+	 *					   |_ a21  a22 | 0   1 _|       |_ X21 X21 _|    
+	 *    
+	 *		2. In our implementation, pDst Matrix is used as identity matrix.    
+	 *    
+	 *		3. Begin with the first row. Let i = 1.    
+	 *    
+	 *	    4. Check to see if the pivot for row i is zero.    
+	 *		   The pivot is the element of the main diagonal that is on the current row.    
+	 *		   For instance, if working with row i, then the pivot element is aii.    
+	 *		   If the pivot is zero, exchange that row with a row below it that does not    
+	 *		   contain a zero in column i. If this is not possible, then an inverse    
+	 *		   to that matrix does not exist.    
+	 *    
+	 *	    5. Divide every element of row i by the pivot.    
+	 *    
+	 *	    6. For every row below and  row i, replace that row with the sum of that row and    
+	 *		   a multiple of row i so that each new element in column i below row i is zero.    
+	 *    
+	 *	    7. Move to the next row and column and repeat steps 2 through 5 until you have zeros    
+	 *		   for every element below and above the main diagonal.    
+	 *    
+	 *		8. Now an identical matrix is formed to the left of the bar(input matrix, pSrc).    
+	 *		   Therefore, the matrix to the right of the bar is our solution(pDst matrix, pDst).    
+	 *----------------------------------------------------------------------------------------------------------------*/
 
     /* Working pointer for destination matrix */
     pInT2 = pOut;
@@ -421,39 +421,39 @@
   {
 
     /*--------------------------------------------------------------------------------------------------------------       
-     * Matrix Inverse can be solved using elementary row operations.        
-     *        
-     *    Gauss-Jordan Method:       
-     *                
-     *       1. First combine the identity matrix and the input matrix separated by a bar to form an        
-     *        augmented matrix as follows:        
-     *                        _  _          _        _       _   _         _           _       
-     *                       |  |  a11  a12  | | | 1   0  |   |       |  X11 X12  |         
-     *                       |  |            | | |        |   |   =   |           |        
-     *                       |_ |_ a21  a22 _| | |_0   1 _|  _|       |_ X21 X21 _|       
-     *                              
-     *        2. In our implementation, pDst Matrix is used as identity matrix.    
-     *       
-     *        3. Begin with the first row. Let i = 1.       
-     *       
-     *        4. Check to see if the pivot for row i is zero.       
-     *           The pivot is the element of the main diagonal that is on the current row.       
-     *           For instance, if working with row i, then the pivot element is aii.       
-     *           If the pivot is zero, exchange that row with a row below it that does not        
-     *           contain a zero in column i. If this is not possible, then an inverse        
-     *           to that matrix does not exist.       
-     *           
-     *        5. Divide every element of row i by the pivot.       
-     *           
-     *        6. For every row below and  row i, replace that row with the sum of that row and        
-     *           a multiple of row i so that each new element in column i below row i is zero.       
-     *           
-     *        7. Move to the next row and column and repeat steps 2 through 5 until you have zeros       
-     *           for every element below and above the main diagonal.        
-     *                             
-     *        8. Now an identical matrix is formed to the left of the bar(input matrix, src).       
-     *           Therefore, the matrix to the right of the bar is our solution(dst matrix, dst).         
-     *----------------------------------------------------------------------------------------------------------------*/
+	 * Matrix Inverse can be solved using elementary row operations.        
+	 *        
+	 *	Gauss-Jordan Method:       
+	 *	 	       
+	 *	   1. First combine the identity matrix and the input matrix separated by a bar to form an        
+	 *        augmented matrix as follows:        
+	 *				        _  _	      _	    _	   _   _         _	       _       
+	 *					   |  |  a11  a12  | | | 1   0  |   |       |  X11 X12  |         
+	 *					   |  |            | | |        |   |   =   |           |        
+	 *					   |_ |_ a21  a22 _| | |_0   1 _|  _|       |_ X21 X21 _|       
+	 *					          
+	 *		2. In our implementation, pDst Matrix is used as identity matrix.    
+	 *       
+	 *		3. Begin with the first row. Let i = 1.       
+	 *       
+	 *	    4. Check to see if the pivot for row i is zero.       
+	 *		   The pivot is the element of the main diagonal that is on the current row.       
+	 *		   For instance, if working with row i, then the pivot element is aii.       
+	 *		   If the pivot is zero, exchange that row with a row below it that does not        
+	 *		   contain a zero in column i. If this is not possible, then an inverse        
+	 *		   to that matrix does not exist.       
+	 *	       
+	 *	    5. Divide every element of row i by the pivot.       
+	 *	       
+	 *	    6. For every row below and  row i, replace that row with the sum of that row and        
+	 *		   a multiple of row i so that each new element in column i below row i is zero.       
+	 *	       
+	 *	    7. Move to the next row and column and repeat steps 2 through 5 until you have zeros       
+	 *		   for every element below and above the main diagonal.        
+	 *		   		          
+	 *		8. Now an identical matrix is formed to the left of the bar(input matrix, src).       
+	 *		   Therefore, the matrix to the right of the bar is our solution(dst matrix, dst).         
+	 *----------------------------------------------------------------------------------------------------------------*/
 
     /* Working pointer for destination matrix */
     pInT2 = pOut;