The CMSIS DSP 5 library
Dependents: Nucleo-Heart-Rate ejercicioVrms2 PROYECTOFINAL ejercicioVrms ... more
functions/MatrixFunctions/arm_mat_init_f32.c@3:4098b9d3d571, 2018-06-21 (annotated)
- Committer:
- xorjoep
- Date:
- Thu Jun 21 11:56:27 2018 +0000
- Revision:
- 3:4098b9d3d571
- Parent:
- 1:24714b45cd1b
headers is a folder not a library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xorjoep | 1:24714b45cd1b | 1 | /* ---------------------------------------------------------------------- |
xorjoep | 1:24714b45cd1b | 2 | * Project: CMSIS DSP Library |
xorjoep | 1:24714b45cd1b | 3 | * Title: arm_mat_init_f32.c |
xorjoep | 1:24714b45cd1b | 4 | * Description: Floating-point matrix initialization |
xorjoep | 1:24714b45cd1b | 5 | * |
xorjoep | 1:24714b45cd1b | 6 | * $Date: 27. January 2017 |
xorjoep | 1:24714b45cd1b | 7 | * $Revision: V.1.5.1 |
xorjoep | 1:24714b45cd1b | 8 | * |
xorjoep | 1:24714b45cd1b | 9 | * Target Processor: Cortex-M cores |
xorjoep | 1:24714b45cd1b | 10 | * -------------------------------------------------------------------- */ |
xorjoep | 1:24714b45cd1b | 11 | /* |
xorjoep | 1:24714b45cd1b | 12 | * Copyright (C) 2010-2017 ARM Limited or its affiliates. All rights reserved. |
xorjoep | 1:24714b45cd1b | 13 | * |
xorjoep | 1:24714b45cd1b | 14 | * SPDX-License-Identifier: Apache-2.0 |
xorjoep | 1:24714b45cd1b | 15 | * |
xorjoep | 1:24714b45cd1b | 16 | * Licensed under the Apache License, Version 2.0 (the License); you may |
xorjoep | 1:24714b45cd1b | 17 | * not use this file except in compliance with the License. |
xorjoep | 1:24714b45cd1b | 18 | * You may obtain a copy of the License at |
xorjoep | 1:24714b45cd1b | 19 | * |
xorjoep | 1:24714b45cd1b | 20 | * www.apache.org/licenses/LICENSE-2.0 |
xorjoep | 1:24714b45cd1b | 21 | * |
xorjoep | 1:24714b45cd1b | 22 | * Unless required by applicable law or agreed to in writing, software |
xorjoep | 1:24714b45cd1b | 23 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
xorjoep | 1:24714b45cd1b | 24 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
xorjoep | 1:24714b45cd1b | 25 | * See the License for the specific language governing permissions and |
xorjoep | 1:24714b45cd1b | 26 | * limitations under the License. |
xorjoep | 1:24714b45cd1b | 27 | */ |
xorjoep | 1:24714b45cd1b | 28 | |
xorjoep | 1:24714b45cd1b | 29 | #include "arm_math.h" |
xorjoep | 1:24714b45cd1b | 30 | |
xorjoep | 1:24714b45cd1b | 31 | /** |
xorjoep | 1:24714b45cd1b | 32 | * @ingroup groupMatrix |
xorjoep | 1:24714b45cd1b | 33 | */ |
xorjoep | 1:24714b45cd1b | 34 | |
xorjoep | 1:24714b45cd1b | 35 | /** |
xorjoep | 1:24714b45cd1b | 36 | * @defgroup MatrixInit Matrix Initialization |
xorjoep | 1:24714b45cd1b | 37 | * |
xorjoep | 1:24714b45cd1b | 38 | * Initializes the underlying matrix data structure. |
xorjoep | 1:24714b45cd1b | 39 | * The functions set the <code>numRows</code>, |
xorjoep | 1:24714b45cd1b | 40 | * <code>numCols</code>, and <code>pData</code> fields |
xorjoep | 1:24714b45cd1b | 41 | * of the matrix data structure. |
xorjoep | 1:24714b45cd1b | 42 | */ |
xorjoep | 1:24714b45cd1b | 43 | |
xorjoep | 1:24714b45cd1b | 44 | /** |
xorjoep | 1:24714b45cd1b | 45 | * @addtogroup MatrixInit |
xorjoep | 1:24714b45cd1b | 46 | * @{ |
xorjoep | 1:24714b45cd1b | 47 | */ |
xorjoep | 1:24714b45cd1b | 48 | |
xorjoep | 1:24714b45cd1b | 49 | /** |
xorjoep | 1:24714b45cd1b | 50 | * @brief Floating-point matrix initialization. |
xorjoep | 1:24714b45cd1b | 51 | * @param[in,out] *S points to an instance of the floating-point matrix structure. |
xorjoep | 1:24714b45cd1b | 52 | * @param[in] nRows number of rows in the matrix. |
xorjoep | 1:24714b45cd1b | 53 | * @param[in] nColumns number of columns in the matrix. |
xorjoep | 1:24714b45cd1b | 54 | * @param[in] *pData points to the matrix data array. |
xorjoep | 1:24714b45cd1b | 55 | * @return none |
xorjoep | 1:24714b45cd1b | 56 | */ |
xorjoep | 1:24714b45cd1b | 57 | |
xorjoep | 1:24714b45cd1b | 58 | void arm_mat_init_f32( |
xorjoep | 1:24714b45cd1b | 59 | arm_matrix_instance_f32 * S, |
xorjoep | 1:24714b45cd1b | 60 | uint16_t nRows, |
xorjoep | 1:24714b45cd1b | 61 | uint16_t nColumns, |
xorjoep | 1:24714b45cd1b | 62 | float32_t * pData) |
xorjoep | 1:24714b45cd1b | 63 | { |
xorjoep | 1:24714b45cd1b | 64 | /* Assign Number of Rows */ |
xorjoep | 1:24714b45cd1b | 65 | S->numRows = nRows; |
xorjoep | 1:24714b45cd1b | 66 | |
xorjoep | 1:24714b45cd1b | 67 | /* Assign Number of Columns */ |
xorjoep | 1:24714b45cd1b | 68 | S->numCols = nColumns; |
xorjoep | 1:24714b45cd1b | 69 | |
xorjoep | 1:24714b45cd1b | 70 | /* Assign Data pointer */ |
xorjoep | 1:24714b45cd1b | 71 | S->pData = pData; |
xorjoep | 1:24714b45cd1b | 72 | } |
xorjoep | 1:24714b45cd1b | 73 | |
xorjoep | 1:24714b45cd1b | 74 | /** |
xorjoep | 1:24714b45cd1b | 75 | * @} end of MatrixInit group |
xorjoep | 1:24714b45cd1b | 76 | */ |