Skip to content

Commit

Permalink
Remove unnecessary multivector from mba_benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed May 10, 2014
1 parent e788ebf commit 56e236a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/mba_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,13 @@ int main(int argc, char *argv[]) {
);
prof.toc("setup");

vex::multivector<double, 2> C(ctx, n);
vex::vector<double> X(ctx, x);
vex::vector<double> Y(ctx, y);
vex::vector<double> Z(ctx, n);

vex::copy(x, C(0));
vex::copy(y, C(1));

prof.tic_cl("interpolate");
for(size_t i = 0; i < m; ++i)
Z = surf(C(0), C(1));
Z = surf(X, Y);
prof.toc("interpolate");
std::cout << "surf(0.5, 0.5) = " << Z[0] << std::endl;
}
Expand Down

0 comments on commit 56e236a

Please sign in to comment.