/// @file /// Test scaling a vector /// \test Test scaling of a vector #include #include int main(int argc, char **argv) { Ceed ceed; CeedVector x; CeedInt n; CeedScalar a[10]; const CeedScalar *b; CeedInit(argv[1], &ceed); n = 10; CeedVectorCreate(ceed, n, &x); for (CeedInt i=0; i 1e-14) // LCOV_EXCL_START printf("Error in alpha x, computed: %f actual: %f\n", b[i], -(10.0 + i)/2); // LCOV_EXCL_STOP CeedVectorRestoreArrayRead(x, &b); CeedVectorDestroy(&x); CeedDestroy(&ceed); return 0; }