Closed Steven-Roberts closed 2 years ago
My only worry is that this will have a lot of redundant computation
Fair point. It's mostly for convenience. We can document that there is redundant computations and overhead from wrapping things in another layer of functions
Here are some ideas I had to improve the usability of
otp.RHS
.To make partitioning easier, it would be neat for operators like
*
,\
,.*
,+
, etc to be overloaded. For example:Second, there is some inconsistency with
RHS.Jacobian
and similar properties in that they can be a matrix or a function handle depending on whether it is constant. I suggest adding dependent propertiesJacobianMatrix
andJacobianFunction
that consistently provide a matrix or function handle, respectively. It might be a bit confusing for users though.