This commit is contained in:
2026-08-30 01:50:36 +08:00
parent 7940b67827
commit 95e931727a
+2 -1
View File
@@ -181,7 +181,8 @@ c_err_t c_Matrix_Mul(c_Matrix_t* out, const c_Matrix_t* lhs, const c_Matrix_t* r
/** /**
* @brief 标量运算通用驱动核心(内部私有) * @brief 标量运算通用驱动核心(内部私有)
*/ */
static c_err_t c_Matrix_ScalarCore(c_Matrix_t* out, const c_Matrix_t* in, const void* scalar, C_STATIC_FORCE_INLINE
c_err_t c_Matrix_ScalarCore(c_Matrix_t* out, const c_Matrix_t* in, const void* scalar,
c_Matrix_OpFn_t op, void* ud) { c_Matrix_OpFn_t op, void* ud) {
if (!out || !in || !scalar || !op) return C_ERR_PARAM; if (!out || !in || !scalar || !op) return C_ERR_PARAM;
if (in->rows != out->rows || in->cols != out->cols || in->item_size != out->item_size) { if (in->rows != out->rows || in->cols != out->cols || in->item_size != out->item_size) {