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
47 -
55 a_{1,1}-b_{1,1} & a_{1,2}-b_{1,2} & a_{1,3}-b_{1,3} \\
56 a_{2,1}-b_{2,1} & a_{2,2}-b_{2,2} & a_{2,3}-b_{2,3} \\
57 a_{3,1}-b_{3,1} & a_{3,2}-b_{3,2} & a_{3,3}-b_{3,3} \\
71 @brief Floating-point matrix subtraction.
76 - \ref ARM_MATH_SUCCESS : Operation successful
77 - \ref ARM_MATH_SIZE_MISMATCH : Matrix size check failed
93 pDataA = pSrcA->pData; in arm_mat_sub_f32()
94 pDataB = pSrcB->pData; in arm_mat_sub_f32()
95 pDataDst = pDst->pData; in arm_mat_sub_f32()
101 if ((pSrcA->numRows != pSrcB->numRows) || in arm_mat_sub_f32()
102 (pSrcA->numCols != pSrcB->numCols) || in arm_mat_sub_f32()
103 (pSrcA->numRows != pDst->numRows) || (pSrcA->numCols != pDst->numCols)) in arm_mat_sub_f32()
114 numSamples = (uint32_t) pSrcA->numRows * pSrcA->numCols; in arm_mat_sub_f32()
118 /* C(m,n) = A(m,n) + B(m,n) */ in arm_mat_sub_f32()
130 blkCnt--; in arm_mat_sub_f32()
159 float32_t *pIn1 = pSrcA->pData; /* input data matrix pointer A */ in arm_mat_sub_f32()
160 float32_t *pIn2 = pSrcB->pData; /* input data matrix pointer B */ in arm_mat_sub_f32()
161 float32_t *pOut = pDst->pData; /* output data matrix pointer */ in arm_mat_sub_f32()
170 if ((pSrcA->numRows != pSrcB->numRows) || in arm_mat_sub_f32()
171 (pSrcA->numCols != pSrcB->numCols) || in arm_mat_sub_f32()
172 (pSrcA->numRows != pDst->numRows) || (pSrcA->numCols != pDst->numCols)) in arm_mat_sub_f32()
185 numSamples = (uint32_t) pSrcA->numRows * pSrcA->numCols; in arm_mat_sub_f32()
193 /* C(m,n) = A(m,n) - B(m,n) */ in arm_mat_sub_f32()
207 blkCnt--; in arm_mat_sub_f32()
217 /* C(m,n) = A(m,n) - B(m,n) */ in arm_mat_sub_f32()
219 *pOut++ = (*pIn1++) - (*pIn2++); in arm_mat_sub_f32()
222 blkCnt--; in arm_mat_sub_f32()
238 float32_t *pInA = pSrcA->pData; /* input data matrix pointer A */ in arm_mat_sub_f32()
239 float32_t *pInB = pSrcB->pData; /* input data matrix pointer B */ in arm_mat_sub_f32()
240 float32_t *pOut = pDst->pData; /* output data matrix pointer */ in arm_mat_sub_f32()
249 if ((pSrcA->numRows != pSrcB->numRows) || in arm_mat_sub_f32()
250 (pSrcA->numCols != pSrcB->numCols) || in arm_mat_sub_f32()
251 (pSrcA->numRows != pDst->numRows) || in arm_mat_sub_f32()
252 (pSrcA->numCols != pDst->numCols) ) in arm_mat_sub_f32()
263 numSamples = (uint32_t) pSrcA->numRows * pSrcA->numCols; in arm_mat_sub_f32()
272 /* C(m,n) = A(m,n) - B(m,n) */ in arm_mat_sub_f32()
275 *pOut++ = (*pInA++) - (*pInB++); in arm_mat_sub_f32()
276 *pOut++ = (*pInA++) - (*pInB++); in arm_mat_sub_f32()
277 *pOut++ = (*pInA++) - (*pInB++); in arm_mat_sub_f32()
278 *pOut++ = (*pInA++) - (*pInB++); in arm_mat_sub_f32()
281 blkCnt--; in arm_mat_sub_f32()
296 /* C(m,n) = A(m,n) - B(m,n) */ in arm_mat_sub_f32()
299 *pOut++ = (*pInA++) - (*pInB++); in arm_mat_sub_f32()
302 blkCnt--; in arm_mat_sub_f32()