Lines Matching +full:- +full:m
1 /* ----------------------------------------------------------------------
4 * Description: Floating-point matrix subtraction
9 * Target Processor: Cortex-M and Cortex-A cores
10 * -------------------------------------------------------------------- */
12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
14 * SPDX-License-Identifier: Apache-2.0
20 * www.apache.org/licenses/LICENSE-2.0
45 @brief Floating-point matrix subtraction.
50 - \ref ARM_MATH_SUCCESS : Operation successful
51 - \ref ARM_MATH_SIZE_MISMATCH : Matrix size check failed
68 pDataA = pSrcA->pData; in arm_mat_sub_f16()
69 pDataB = pSrcB->pData; in arm_mat_sub_f16()
70 pDataDst = pDst->pData; in arm_mat_sub_f16()
76 if ((pSrcA->numRows != pSrcB->numRows) || in arm_mat_sub_f16()
77 (pSrcA->numCols != pSrcB->numCols) || in arm_mat_sub_f16()
78 (pSrcA->numRows != pDst->numRows) || (pSrcA->numCols != pDst->numCols)) in arm_mat_sub_f16()
89 numSamples = (uint32_t) pSrcA->numRows * pSrcA->numCols; in arm_mat_sub_f16()
93 /* C(m,n) = A(m,n) + B(m,n) */ in arm_mat_sub_f16()
105 blkCnt--; in arm_mat_sub_f16()
134 float16_t *pInA = pSrcA->pData; /* input data matrix pointer A */ in arm_mat_sub_f16()
135 float16_t *pInB = pSrcB->pData; /* input data matrix pointer B */ in arm_mat_sub_f16()
136 float16_t *pOut = pDst->pData; /* output data matrix pointer */ in arm_mat_sub_f16()
145 if ((pSrcA->numRows != pSrcB->numRows) || in arm_mat_sub_f16()
146 (pSrcA->numCols != pSrcB->numCols) || in arm_mat_sub_f16()
147 (pSrcA->numRows != pDst->numRows) || in arm_mat_sub_f16()
148 (pSrcA->numCols != pDst->numCols) ) in arm_mat_sub_f16()
159 numSamples = (uint32_t) pSrcA->numRows * pSrcA->numCols; in arm_mat_sub_f16()
168 /* C(m,n) = A(m,n) - B(m,n) */ in arm_mat_sub_f16()
171 *pOut++ = (_Float16)(*pInA++) - (_Float16)(*pInB++); in arm_mat_sub_f16()
172 *pOut++ = (_Float16)(*pInA++) - (_Float16)(*pInB++); in arm_mat_sub_f16()
173 *pOut++ = (_Float16)(*pInA++) - (_Float16)(*pInB++); in arm_mat_sub_f16()
174 *pOut++ = (_Float16)(*pInA++) - (_Float16)(*pInB++); in arm_mat_sub_f16()
177 blkCnt--; in arm_mat_sub_f16()
192 /* C(m,n) = A(m,n) - B(m,n) */ in arm_mat_sub_f16()
195 *pOut++ = (_Float16)(*pInA++) - (_Float16)(*pInB++); in arm_mat_sub_f16()
198 blkCnt--; in arm_mat_sub_f16()