重构
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user