Lines Matching refs:NOBSERVATIONS
26 #define NOBSERVATIONS 214 macro
32 PetscReal t[NOBSERVATIONS]; /* array of independent variables of observation */
33 PetscReal y[NOBSERVATIONS]; /* array of dependent variables */
34 PetscReal j[NOBSERVATIONS][NPARAMETERS]; /* dense jacobian matrix array*/
35 PetscInt idm[NOBSERVATIONS]; /* Matrix indices for jacobian */
60 PetscCall(VecCreateSeq(MPI_COMM_SELF, NOBSERVATIONS, &f)); in main()
63 PetscCall(MatCreateSeqDense(MPI_COMM_SELF, NOBSERVATIONS, NPARAMETERS, NULL, &J)); in main()
65 for (i = 0; i < NOBSERVATIONS; i++) user.idm[i] = i; in main()
114 …for (i = 0; i < NOBSERVATIONS; i++) f[i] = y[i] - PetscExpScalar(-x[0] * t[i]) / (x[1] + x[2] * t[… in EvaluateFunction()
117 PetscCall(PetscLogFlops(6 * NOBSERVATIONS)); in EvaluateFunction()
133 for (i = 0; i < NOBSERVATIONS; i++) { in EvaluateJacobian()
142 …PetscCall(MatSetValues(J, NOBSERVATIONS, user->idm, NPARAMETERS, user->idn, (PetscReal *)user->j, … in EvaluateJacobian()
147 PetscCall(PetscLogFlops(NOBSERVATIONS * 13)); in EvaluateJacobian()