Lines Matching refs:f_hat

37 …tup_t)(const testcase_delegate_t *ego_, int *d, int **N, int *NN, int *M, R **x, R **f_hat, R **f);
38 typedef void (*destroy_t)(const testcase_delegate_t *ego_, int *N, R *x, R *f_hat, R *f);
53 …p_file(const testcase_delegate_t *ego_, int *d, int **N, int *NN, int *M, R **x, R **f_hat, R **f);
54 static void destroy_file(const testcase_delegate_t *ego_, int *N, R *x, R *f_hat, R *f);
65 …online(const testcase_delegate_t *ego_, int *d, int **N, int *NN, int *M, R **x, R **f_hat, R **f);
66 static void destroy_online(const testcase_delegate_t *ego_, int *N, R *x, R *f_hat, R *f);
83 …epare_t)(check_delegate_t *ego, X(plan) *p, const int NN, const int M, const R *f, const R *f_hat);
84 …mpare_t)(check_delegate_t *ego, X(plan) *p, const int NN, const int M, const R *f, const R *f_hat);
176 p2.f_hat[i] = K(0.0); in trafo_direct_cost()
295 R *f_hat, *f; in check_single() local
297 testcase->setup(testcase, &d, &N, &NN, &M, &x, &f_hat, &f); in check_single()
339 check_delegate->prepare(check_delegate, &p, NN, M, f, f_hat); in check_single()
351 R err = check_delegate->compare(check_delegate, &p, NN, M, f, f_hat); in check_single()
358 testcase->destroy(testcase, N, x, f_hat, f); in check_single()
384 …up_file(const testcase_delegate_t *ego_, int *d, int **N, int *NN, int *M, R **x, R **f_hat, R **f) in setup_file() argument
431 *f_hat = Y(malloc)((size_t)(NN[0])*sizeof(R)); in setup_file()
436 (*f_hat)[j] = re; in setup_file()
451 static void destroy_file(const testcase_delegate_t *ego_, int *N, R *x, R *f_hat, R *f) in destroy_file() argument
456 Y(free)(f_hat); in destroy_file()
460 …_online(const testcase_delegate_t *ego_, int *d, int **N, int *NN, int *M, R **x, R **f_hat, R **f) in setup_online() argument
501 *f_hat = Y(malloc)((size_t)(NN[0])*sizeof(R)); in setup_online()
504 (*f_hat)[j] = Y(drand48)() - K(0.5); in setup_online()
525 p.f_hat[j] = (*f_hat)[j]; in setup_online()
541 …_online(const testcase_delegate_t *ego_, int *d, int **N, int *NN, int *M, R **x, R **f_hat, R **f) in setup_adjoint_online() argument
616 *f_hat = Y(malloc)((size_t)(NN[0])*sizeof(R)); in setup_adjoint_online()
620 (*f_hat)[j] = p.f_hat[j]; in setup_adjoint_online()
627 static void destroy_online(const testcase_delegate_t *ego_, int *N, R *x, R *f_hat, R *f) in destroy_online() argument
632 Y(free)(f_hat); in destroy_online()
687 …are_trafo(check_delegate_t *ego, X(plan) *p, const int NN, const int M, const R *f, const R *f_hat) in prepare_trafo() argument
697 p->f_hat[j] = f_hat[j]; in prepare_trafo()
701 …e_adjoint(check_delegate_t *ego, X(plan) *p, const int NN, const int M, const R *f, const R *f_hat) in prepare_adjoint() argument
705 UNUSED(f_hat); in prepare_adjoint()
715 …are_trafo(check_delegate_t *ego, X(plan) *p, const int NN, const int M, const R *f, const R *f_hat) in compare_trafo() argument
718 UNUSED(f_hat); in compare_trafo()
732 denominator += ABS(p->f_hat[j]); in compare_trafo()
737 …e_adjoint(check_delegate_t *ego, X(plan) *p, const int NN, const int M, const R *f, const R *f_hat) in compare_adjoint() argument
751 numerator = MAX(numerator, ABS(f_hat[j] - p->f_hat[j])); in compare_adjoint()