forked from AMICI-dev/AMICI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetCVar.m
34 lines (32 loc) · 830 Bytes
/
getCVar.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function [ this ] = getCVar(this)
% getCVar populates the cvar property
%
% Parameters:
%
% Return values:
% this: updated function definition object @type amifun
switch(this.funstr)
case 'J'
this.cvar = 'Jdata';
case 'JSparse'
this.cvar = 'Jdata';
case 'JB'
this.cvar = 'JBdata';
case 'JSparseB'
this.cvar = 'JBdata';
case 'w'
this.cvar = 'w_tmp';
case 'dwdx'
this.cvar = 'dwdx_tmp';
case 'dwdp'
this.cvar = 'dwdp_tmp';
case 'M'
this.cvar = 'M_tmp';
case 'dfdx'
this.cvar = 'dfdx_tmp';
case 'sz_tf'
this.cvar = 'sz';
otherwise
this.cvar = this.funstr;
end
end