Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
arm_mat_init_f32.c
00001 /* ---------------------------------------------------------------------- 00002 * Project: CMSIS DSP Library 00003 * Title: arm_mat_init_f32.c 00004 * Description: Floating-point matrix initialization 00005 * 00006 * $Date: 27. January 2017 00007 * $Revision: V.1.5.1 00008 * 00009 * Target Processor: Cortex-M cores 00010 * -------------------------------------------------------------------- */ 00011 /* 00012 * Copyright (C) 2010-2017 ARM Limited or its affiliates. All rights reserved. 00013 * 00014 * SPDX-License-Identifier: Apache-2.0 00015 * 00016 * Licensed under the Apache License, Version 2.0 (the License); you may 00017 * not use this file except in compliance with the License. 00018 * You may obtain a copy of the License at 00019 * 00020 * www.apache.org/licenses/LICENSE-2.0 00021 * 00022 * Unless required by applicable law or agreed to in writing, software 00023 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00024 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00025 * See the License for the specific language governing permissions and 00026 * limitations under the License. 00027 */ 00028 00029 #include "arm_math.h" 00030 00031 /** 00032 * @ingroup groupMatrix 00033 */ 00034 00035 /** 00036 * @defgroup MatrixInit Matrix Initialization 00037 * 00038 * Initializes the underlying matrix data structure. 00039 * The functions set the <code>numRows</code>, 00040 * <code>numCols</code>, and <code>pData</code> fields 00041 * of the matrix data structure. 00042 */ 00043 00044 /** 00045 * @addtogroup MatrixInit 00046 * @{ 00047 */ 00048 00049 /** 00050 * @brief Floating-point matrix initialization. 00051 * @param[in,out] *S points to an instance of the floating-point matrix structure. 00052 * @param[in] nRows number of rows in the matrix. 00053 * @param[in] nColumns number of columns in the matrix. 00054 * @param[in] *pData points to the matrix data array. 00055 * @return none 00056 */ 00057 00058 void arm_mat_init_f32( 00059 arm_matrix_instance_f32 * S, 00060 uint16_t nRows, 00061 uint16_t nColumns, 00062 float32_t * pData) 00063 { 00064 /* Assign Number of Rows */ 00065 S->numRows = nRows; 00066 00067 /* Assign Number of Columns */ 00068 S->numCols = nColumns; 00069 00070 /* Assign Data pointer */ 00071 S->pData = pData; 00072 } 00073 00074 /** 00075 * @} end of MatrixInit group 00076 */ 00077
Generated on Tue Jul 12 2022 16:47:27 by
1.7.2