49 this =
this@dscomponents.ACompEvalCoreFun(sys);
56 fx = bsxfun(@times,this.
A*x,this.
mu(1,:)) - x.*(this.
Ax*x);
61 error(
" Evaluate is overridden directly ");
66 fx = bsxfun(@times,this.
A*x,
mu(1,:)) - x.*(this.
Ax*x);
71 hlp = bsxfun(@times,this.
Ax,x);
72 hlp = hlp + spdiags(this.
Ax*x,0,size(x,1),size(x,1));
73 J = this.
mu(1)*this.
A - hlp;
80 dx = (m.Omega(2) - m.Omega(1))/(n+1);
84 this.
A= spdiags([d2 -2*d2 d2], -1:1, n, n);
85 this.
Ax= spdiags([-d1 0*d1 d1], -1:1, n, n);
93 copy =
clone@dscomponents.ACompEvalCoreFun(
this, models.burgers.BurgersF(
this.System));
102 fxj = zeros(length(pts),size(X,2));
103 for idx=1:length(pts)
111 xidx = (st+1):ends(idx);
113 fxj(idx) = this.
mu(1).*(this.
A(pt,argidx(xidx))*x) - x(
self(xidx)).*(this.
Ax(pt,argidx(xidx))*x);
141 fxj = zeros(length(pts),size(X,2));
142 for idx=1:length(pts)
150 xidx = (st+1):ends(idx);
152 fxj(idx,:) =
mu(1,:).*(this.
A(pt,argidx(xidx))*x) - x(
self(xidx),:).*(this.
Ax(pt,argidx(xidx))*x);
integer fDim
The current output dimension of the function.
function evaluateCoreFun()
CustomProjection
Set this property if the projection process is customized by overriding the default project method...
logical TimeDependent
Flag that indicates if the ACoreFun is (truly) time-dependent.
Model
The Model this System is attached to.
function fx = evaluateMulti(colvec< double > x, unused1,colvec< double > mu)
function J = getStateJacobian(colvec< double > x, unused1)
function fxj = evaluateComponentsMulti(pts, ends, argidx, self, X, unused1,colvec< double > mu)
integer xDim
The current state space dimension of the function's argument .
models.BaseFirstOrderSystem System
The system associated with the current ACoreFun.
function fxj = evaluateComponents(rowvec< integer > pts,rowvec< integer > ends,rowvec< integer > argidx,rowvec< integer > self,matrix< double > X, unused1)
Evaluates the burgers nonlinearity pointwise.
colvec< double > mu
The current model parameter mu for evaluations. Will not be persisted as only valid for runtime durin...
sparse< logical > JSparsityPattern
Sparsity pattern for the jacobian matrix.
ACompEvalCoreFun: A normal CoreFun which supports single-component evaluation.
function fx = evaluate(colvec< double > x, unused1)