Robert Lopez / CMSIS5
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers arm_mat_init_q15.c Source File

arm_mat_init_q15.c

00001 /* ----------------------------------------------------------------------
00002  * Project:      CMSIS DSP Library
00003  * Title:        arm_mat_init_q15.c
00004  * Description:  Q15 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  * @addtogroup MatrixInit
00037  * @{
00038  */
00039 
00040   /**
00041    * @brief  Q15 matrix initialization.
00042    * @param[in,out] *S             points to an instance of the floating-point matrix structure.
00043    * @param[in]     nRows          number of rows in the matrix.
00044    * @param[in]     nColumns       number of columns in the matrix.
00045    * @param[in]     *pData     points to the matrix data array.
00046    * @return        none
00047    */
00048 
00049 void arm_mat_init_q15(
00050   arm_matrix_instance_q15 * S,
00051   uint16_t nRows,
00052   uint16_t nColumns,
00053   q15_t * pData)
00054 {
00055   /* Assign Number of Rows */
00056   S->numRows = nRows;
00057 
00058   /* Assign Number of Columns */
00059   S->numCols = nColumns;
00060 
00061   /* Assign Data pointer */
00062   S->pData = pData;
00063 }
00064 
00065 /**
00066  * @} end of MatrixInit group
00067  */
00068