# Mean Square Error

void riscv_mse_f16(const float16_t *pSrcA, const float16_t *pSrcB, uint32_t blockSize, float16_t *result)
void riscv_mse_f32(const float32_t *pSrcA, const float32_t *pSrcB, uint32_t blockSize, float32_t *pResult)
void riscv_mse_f64(const float64_t *pSrcA, const float64_t *pSrcB, uint32_t blockSize, float64_t *pResult)
void riscv_mse_q15(const q15_t *pSrcA, const q15_t *pSrcB, uint32_t blockSize, q15_t *pResult)
void riscv_mse_q31(const q31_t *pSrcA, const q31_t *pSrcB, uint32_t blockSize, q31_t *pResult)
void riscv_mse_q7(const q7_t *pSrcA, const q7_t *pSrcB, uint32_t blockSize, q7_t *pResult)
group MSE

Calculates the mean square error between two vectors.

Functions

void riscv_mse_f16(const float16_t *pSrcA, const float16_t *pSrcB, uint32_t blockSize, float16_t *result)

Mean square error between two half floating point vectors.

Mean square error between two half precision float vectors.

Parameters
• pSrcA[in] points to the first input vector

• pSrcB[in] points to the second input vector

• blockSize[in] number of samples in input vector

• result[out] mean square error

Returns

none

void riscv_mse_f32(const float32_t *pSrcA, const float32_t *pSrcB, uint32_t blockSize, float32_t *pResult)

Mean square error between two floating point vectors.

Mean square error between two single precision float vectors.

Parameters
• pSrcA[in] points to the first input vector

• pSrcB[in] points to the second input vector

• blockSize[in] number of samples in input vector

• pResult[out] mean square error

Returns

none

void riscv_mse_f64(const float64_t *pSrcA, const float64_t *pSrcB, uint32_t blockSize, float64_t *pResult)

Mean square error between two double floating point vectors.

Mean square error between two double precision float vectors.

Parameters
• pSrcA[in] points to the first input vector

• pSrcB[in] points to the second input vector

• blockSize[in] number of samples in input vector

• pResult[out] mean square error

Returns

none

void riscv_mse_q15(const q15_t *pSrcA, const q15_t *pSrcB, uint32_t blockSize, q15_t *pResult)

Mean square error between two Q15 vectors.

Parameters
• pSrcA[in] points to the first input vector

• pSrcB[in] points to the second input vector

• blockSize[in] number of samples in input vector

• pResult[out] mean square error

Returns

none

void riscv_mse_q31(const q31_t *pSrcA, const q31_t *pSrcB, uint32_t blockSize, q31_t *pResult)

Mean square error between two Q31 vectors.

Parameters
• pSrcA[in] points to the first input vector

• pSrcB[in] points to the second input vector

• blockSize[in] number of samples in input vector

• pResult[out] mean square error

Returns

none

void riscv_mse_q7(const q7_t *pSrcA, const q7_t *pSrcB, uint32_t blockSize, q7_t *pResult)

Mean square error between two Q7 vectors.

Parameters
• pSrcA[in] points to the first input vector

• pSrcB[in] points to the second input vector

• blockSize[in] number of samples in input vector

• pResult[out] mean square error

Returns

none