You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubtraitNonLinearOp:Op{/// Compute the operator at a given state and time.fncall_inplace(&self,x:&Self::V,t:Self::T,y:&mutSelf::V);
...
To make this more flexible, we should use VectorView and VectorViewMut instead, ie:
pubtraitNonLinearOp:Op{/// Compute the operator at a given state and time.fncall_inplace(&self,x:Self::VView,t:Self::T,y:Self::VViewMut);
...
This allows algorithms to call these functions with views rather than references to owned vectors. One usecase for this is to concatentate solves with varying parameters into a larger statevector
The text was updated successfully, but these errors were encountered:
however, it would allow me to reduce the amount of allocated memory for the solvers. Bdf solver stores diff as well as y and dy, even tho these overlap somewhat, simply because we need a separate vector for the state, and the op calls
atm the main call function for
NonLinearOp
is:To make this more flexible, we should use VectorView and VectorViewMut instead, ie:
This allows algorithms to call these functions with views rather than references to owned vectors. One usecase for this is to concatentate solves with varying parameters into a larger statevector
The text was updated successfully, but these errors were encountered: