Suggestions on syntax to express mathematical formula concisely

前端 未结 13 1270
予麋鹿
予麋鹿 2021-02-02 08:46

I am developing functional domain specific embedded language within C++ to translate formulas into working code as concisely and accurately as possible.

I posted a proto

13条回答
  •  情深已故
    2021-02-02 09:19

    T = T - T'/e;
    

    or, if you're not operating on all of T

    T(0:i,0:j) = T(0:i,0:j) - T(0:i,0:j)'/e(0:i,0:j)
    

提交回复
热议问题