[gatest] Remove the workarounds for array lifetime

Now that arrays work well enough for this case, no point in having the
workarounds (other than they're actually faster, but I'd like to
optimize *that* sometime).
This commit is contained in:
Bill Currie 2023-05-21 22:20:38 +09:00
parent 7b6b25a751
commit d01fc27dd5

View file

@ -81,11 +81,11 @@ main ()
names[0], names[3], names[0], names[3], prod);
Algebra *alg = [Algebra R:3, 0, 1];
double vals1[32] = {1, 0, 0, 8};
static double vals2[32] = {0, 1, 0, 8};//FIXME qfcc bug (static)
static double origin_vals[32] = {0, 0, 0, 1};
MultiVector *plane1 = [alg group:0 values:vals1];
MultiVector *plane2 = [alg group:0 values:vals2];
double plane1_vals[4] = {1, 0, 0, 8};
double plane2_vals[4] = {0, 1, 0, 8};
double origin_vals[4] = {0, 0, 0, 1};
MultiVector *plane1 = [alg group:0 values:plane1_vals];
MultiVector *plane2 = [alg group:0 values:plane2_vals];
MultiVector *origin = [alg group:3 values:origin_vals];
MultiVector *line = [plane1 wedge:plane2];