115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
octave_value_list retval;
#endif // ! STANDALONE
ColumnVector mttu (MTTNU);
// Set up the mttu vector
#ifndef STANDALONE
static int MTT_input_row;
static int MTT_input_last;
Matrix MTT_input = get_global_value ("MTT_input").matrix_value();
mttu = MTT_input.row (MTT_input_row);
if (0 == MTT_input_row)
{
MTT_input_last = (MTT_input.length() / mttu.length()) - 1;
}
if (MTT_input_row < MTT_input_last)
{
MTT_input_row++;
}
#else
double t, u;
strip_comments (cin);
cin >> t;
for (register int i = 0; i < MTTNU; i++)
|
|
<
|
|
<
|
|
<
<
|
|
|
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
octave_value_list retval;
#endif // ! STANDALONE
ColumnVector mttu (MTTNU);
// Set up the mttu vector
#ifndef STANDALONE
int MTT_input_index = static_cast<int>(get_global_value ("MTT_input_index").double_value ());
int MTT_input_last = static_cast<int>(get_global_value ("MTT_input_last").double_value ());
Matrix MTT_input = get_global_value ("MTT_input").matrix_value();
mttu = MTT_input.row (MTT_input_index);
if (MTT_input_index < (MTT_input_last - 1))
{
set_global_value ("MTT_input_index", static_cast<double>(++MTT_input_index));
}
#else
double t, u;
strip_comments (cin);
cin >> t;
for (register int i = 0; i < MTTNU; i++)
|