![]() |
![]() |
00001 /* ======================================================================= */ 00002 /* DSPF_dp_qrd.h -- QR decompostion */ 00003 /* Optimized C Implementation */ 00004 /* */ 00005 /* Rev 1.0.0 */ 00006 /* */ 00007 /* Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ */ 00008 /* */ 00009 /* */ 00010 /* Redistribution and use in source and binary forms, with or without */ 00011 /* modification, are permitted provided that the following conditions */ 00012 /* are met: */ 00013 /* */ 00014 /* Redistributions of source code must retain the above copyright */ 00015 /* notice, this list of conditions and the following disclaimer. */ 00016 /* */ 00017 /* Redistributions in binary form must reproduce the above copyright */ 00018 /* notice, this list of conditions and the following disclaimer in the */ 00019 /* documentation and/or other materials provided with the */ 00020 /* distribution. */ 00021 /* */ 00022 /* Neither the name of Texas Instruments Incorporated nor the names of */ 00023 /* its contributors may be used to endorse or promote products derived */ 00024 /* from this software without specific prior written permission. */ 00025 /* */ 00026 /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */ 00027 /* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */ 00028 /* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR */ 00029 /* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT */ 00030 /* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, */ 00031 /* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ 00032 /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, */ 00033 /* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY */ 00034 /* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */ 00035 /* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE */ 00036 /* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ 00037 /* */ 00038 /* ======================================================================= */ 00039 #ifndef DSPF_DP_QRD_H_ 00040 #define DSPF_DP_QRD_H_ 00041 00042 #ifndef __TI_COMPILER_VERSION__ // for non TI compiler 00043 #include "assert.h" // intrinsics prototypes 00044 #include "C6xSimulator.h" // intrinsics prototypes 00045 #include "C6xSimulator_type_modifiers.h" // define/undefine typing keywords 00046 #endif 00047 00048 /*===========================================================================*/ 00049 /* External Function Prototypes and Documentation */ 00050 /*===========================================================================*/ 00051 00053 /* @{ */ 00054 00057 /* @{ */ 00058 00089 int DSPF_dp_qrd(const int Nrows,const int Ncols,double *restrict A,double *restrict Q, 00090 double *restrict R,double *restrict u); 00091 00092 /* @} */ /* ingroup */ 00093 00094 00097 /* @{ */ 00098 00127 int DSPF_dp_qrd_inverse(const int Nrows,const int Ncols,double *restrict Q, 00128 double *restrict R,double *restrict inv_A); 00129 00130 /* @} */ /* ingroup */ 00131 00132 00135 /* @{ */ 00136 00170 int DSPF_dp_qrd_solver(const int Nrows,const int Ncols,double *restrict Q, 00171 double *restrict R,double *restrict b,double *restrict y, 00172 double *restrict x); 00173 00174 /* @} */ /* ingroup */ 00175 /* @} */ /* ingroup */ 00176 00177 #endif /* DSPF_DP_QRD_H_ */ 00178 00179 /* ======================================================================= */ 00180 /* End of file: DSPF_dp_qrd.h */ 00181 /* ----------------------------------------------------------------------- */ 00182 /* Copyright (c) 2013 Texas Instruments, Incorporated. */ 00183 /* All Rights Reserved. */ 00184 /* ======================================================================= */