Added all the F4 libraries to the project
[fw/stlink] / exampleF4 / CMSIS / DSP_Lib / Source / MatrixFunctions / arm_mat_init_q15.c
1 /* ----------------------------------------------------------------------   
2 * Copyright (C) 2010 ARM Limited. All rights reserved.   
3 *   
4 * $Date:        15. July 2011  
5 * $Revision:    V1.0.10  
6 *   
7 * Project:          CMSIS DSP Library   
8 * Title:        arm_mat_init_q15.c   
9 *   
10 * Description:  Q15 matrix initialization.   
11 *   
12 * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
13 *  
14 * Version 1.0.10 2011/7/15 
15 *    Big Endian support added and Merged M0 and M3/M4 Source code.  
16 *   
17 * Version 1.0.3 2010/11/29  
18 *    Re-organized the CMSIS folders and updated documentation.   
19 *    
20 * Version 1.0.2 2010/11/11   
21 *    Documentation updated.    
22 *   
23 * Version 1.0.1 2010/10/05    
24 *    Production release and review comments incorporated.   
25 *   
26 * Version 1.0.0 2010/09/20    
27 *    Production release and review comments incorporated.   
28 *   
29 * Version 0.0.5  2010/04/26    
30 *    incorporated review comments and updated with latest CMSIS layer   
31 *   
32 * Version 0.0.3  2010/03/10    
33 *    Initial version   
34 * -------------------------------------------------------------------------- */
35
36
37 #include "arm_math.h"
38
39 /**   
40  * @ingroup groupMatrix   
41  */
42
43 /**   
44  * @addtogroup MatrixInit   
45  * @{   
46  */
47
48   /**   
49    * @brief  Q15 matrix initialization.   
50    * @param[in,out] *S             points to an instance of the floating-point matrix structure.   
51    * @param[in]     nRows          number of rows in the matrix.   
52    * @param[in]     nColumns       number of columns in the matrix.   
53    * @param[in]     *pData         points to the matrix data array.   
54    * @return        none   
55    */
56
57 void arm_mat_init_q15(
58   arm_matrix_instance_q15 * S,
59   uint16_t nRows,
60   uint16_t nColumns,
61   q15_t * pData)
62 {
63   /* Assign Number of Rows */
64   S->numRows = nRows;
65
66   /* Assign Number of Columns */
67   S->numCols = nColumns;
68
69   /* Assign Data pointer */
70   S->pData = pData;
71 }
72
73 /**   
74  * @} end of MatrixInit group   
75  */