Subversion Repositories LedShow

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 1
/* ----------------------------------------------------------------------    
2
* Copyright (C) 2010-2014 ARM Limited. All rights reserved.    
3
*    
4
* $Date:        19. March 2015
5
* $Revision:    V.1.4.5
6
*    
7
* Project:          CMSIS DSP Library    
8
* Title:        arm_mat_init_q31.c    
9
*    
10
* Description:  Q31 matrix initialization.    
11
* Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
12
*  
13
* Redistribution and use in source and binary forms, with or without
14
* modification, are permitted provided that the following conditions
15
* are met:
16
*   - Redistributions of source code must retain the above copyright
17
*     notice, this list of conditions and the following disclaimer.
18
*   - Redistributions in binary form must reproduce the above copyright
19
*     notice, this list of conditions and the following disclaimer in
20
*     the documentation and/or other materials provided with the
21
*     distribution.
22
*   - Neither the name of ARM LIMITED nor the names of its contributors
23
*     may be used to endorse or promote products derived from this
24
*     software without specific prior written permission.
25
*
26
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
30
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
31
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
32
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
33
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
34
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
36
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37
* POSSIBILITY OF SUCH DAMAGE.  
38
* -------------------------------------------------------------------------- */
39
 
40
 
41
#include "arm_math.h"
42
 
43
/**    
44
 * @ingroup groupMatrix    
45
 */
46
 
47
/**    
48
 * @defgroup MatrixInit Matrix Initialization    
49
 *    
50
 */
51
 
52
/**    
53
 * @addtogroup MatrixInit    
54
 * @{    
55
 */
56
 
57
  /**    
58
   * @brief  Q31 matrix initialization.    
59
   * @param[in,out] *S             points to an instance of the floating-point matrix structure.    
60
   * @param[in]     nRows          number of rows in the matrix.    
61
   * @param[in]     nColumns       number of columns in the matrix.    
62
   * @param[in]     *pData         points to the matrix data array.    
63
   * @return        none    
64
   */
65
 
66
void arm_mat_init_q31(
67
  arm_matrix_instance_q31 * S,
68
  uint16_t nRows,
69
  uint16_t nColumns,
70
  q31_t * pData)
71
{
72
  /* Assign Number of Rows */
73
  S->numRows = nRows;
74
 
75
  /* Assign Number of Columns */
76
  S->numCols = nColumns;
77
 
78
  /* Assign Data pointer */
79
  S->pData = pData;
80
}
81
 
82
/**    
83
 * @} end of MatrixInit group    
84
 */