mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-03 20:13:47 +03:00
in loop
This commit is contained in:
parent
c49242ec69
commit
ad853351cc
@ -13,8 +13,11 @@ int main(int argc, char** argv) {
|
|||||||
Var x0 = 1, x1 = 2, x2 = 3;
|
Var x0 = 1, x1 = 2, x2 = 3;
|
||||||
|
|
||||||
Var y = 0.0;
|
Var y = 0.0;
|
||||||
for(int i = 0; i < max; i++)
|
for(int i = 0; i < max; i++) {
|
||||||
y = y + x0 + log(x2) + x1;
|
Var xi = i;
|
||||||
|
y = y + x0 + log(x2) + x1 + xi;
|
||||||
|
x.push_back(xi);
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<Var> x = { x0, x1, x2 };
|
std::vector<Var> x = { x0, x1, x2 };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user