Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 27) sorted by relevance

12

/petsc/include/petsc/private/kernels/ !
H A Dblockmatmult.h5 #define PetscKernel_v_gets_A_times_w_1_exp(v, A, w, exp) \ argument
7 v[0] exp A[0] * w[0]; \
10 #define PetscKernel_v_gets_A_times_w_2_exp(v, A, w, exp) \ argument
12 v[0] exp A[0] * w[0] + A[2] * w[1]; \
13 v[1] exp A[1] * w[0] + A[3] * w[1]; \
16 #define PetscKernel_v_gets_A_times_w_3_exp(v, A, w, exp) \ argument
18 v[0] exp A[0] * w[0] + A[3] * w[1] + A[6] * w[2]; \
19 v[1] exp A[1] * w[0] + A[4] * w[1] + A[7] * w[2]; \
20 v[2] exp A[2] * w[0] + A[5] * w[1] + A[8] * w[2]; \
23 #define PetscKernel_v_gets_A_times_w_4_exp(v, A, w, exp) \ argument
[all …]
/petsc/src/tao/leastsquares/tutorials/matlab/more_wild_probs/ !
H A Ddfovec.m141 tmp2 = exp(tmp1);
167 fvec(i) = exp(-tmp1*x(1)) - exp(-tmp1*x(2))+ ...
168 (exp(-temp) - exp(-tmp1))*x(3);
173 fvec(i) = 2 + 2*temp - exp(temp*x(1)) - exp(temp*x(2));
178 tmp1 = x(1) + temp*x(2) - exp(temp);
216 tmp1 = exp(-x(4)*temp);
217 tmp2 = exp(-x(5)*temp);
223 tmp1 = exp(-x(5)*temp);
224 tmp2 = exp(-x(6)*(temp-x(9))^2);
225 tmp3 = exp(-x(7)*(temp-x(10))^2);
[all …]
H A Dg_dfovec_1d.m337 g_tmp2= g_tmp1.* exp(tmp1);
338 tmp2= exp(tmp1);
413 g_tmp_exp_00000= g_tmp_dfovec_1d_00054.* exp(tmp_dfovec_1d_00054);
414 tmp_exp_00000= exp(tmp_dfovec_1d_00054);
419 g_tmp_exp_00001= g_tmp_dfovec_1d_00055.* exp(tmp_dfovec_1d_00055);
420 tmp_exp_00001= exp(tmp_dfovec_1d_00055);
423 g_tmp_exp_00002= g_tmp_dfovec_1d_00056.* exp(tmp_dfovec_1d_00056);
424 tmp_exp_00002= exp(tmp_dfovec_1d_00056);
425 g_tmp_exp_00003= g_tmp_dfovec_1d_00053.* exp(tmp_dfovec_1d_00053);
426 tmp_exp_00003= exp(tmp_dfovec_1d_00053);
[all …]
/petsc/src/snes/tutorials/ !
H A Dex75.c125 t9 = exp(t6 - 0.4e1 * Rp); in SolKxSolution()
138 t63 = exp(t6 - 0.2e1 * Rp); in SolKxSolution()
155 t108 = exp(t6 - 0.3e1 * Rp - B); in SolKxSolution()
162 t140 = exp(t6 - Rp - B); in SolKxSolution()
177 t23 = exp(t20 - 0.4e1 * Rp); in SolKxSolution()
188 t69 = exp(t20 - 0.2e1 * Rp); in SolKxSolution()
220 t132 = exp(t20 - 0.3e1 * Rp - B); in SolKxSolution()
225 t162 = exp(t20 - Rp - B); in SolKxSolution()
232 t7 = exp(-t6); in SolKxSolution()
245 t61 = exp(-t6 - 0.2e1 * Rp); in SolKxSolution()
[all …]
H A Dex5m.m22 localF(2:m-1,2:n-1) = uxx + uyy - sc*exp(u);
H A Dex47cu.cu67 …et<2>(t) - thrust::get<3>(t)) / (thrust::get<6>(t)) - (thrust::get<6>(t)) * exp(thrust::get<1>(t)); in operator ()()
/petsc/src/binding/petsc4py/demo/legacy/bratu2d/ !
H A Dbratu2dnpy.py5 from numpy import exp
20 - alpha * exp(u) * (hx*hy)
/petsc/src/sys/tests/output/ !
H A Dex25_1.out7 exp(0.500000) = 1.648721
32 exp(0.500000) = 1.648721
/petsc/src/binding/petsc4py/demo/legacy/taosolve/ !
H A Dchwirut.py23 y = np.exp(-BETA[0]*x)/(BETA[1] + BETA[2]*x) + e
45 F.array = y - np.exp(-b1*x)/(b2 + b3*x)
55 v = np.exp(-b1*u)/(b2+b3*u)
/petsc/src/ksp/ksp/tests/raja/ !
H A Dex1.raja.cxx146 double f = gridx.h * gridx.h * (2 * x * (y - 1) * (y - 2 * x + x * y + 2) * exp(x - y)); in main()
199 double f = gridx.h * gridx.h * (2 * x * (y - 1) * (y - 2 * x + x * y + 2) * exp(x - y)); in main()
246 double f = gridx.h * gridx.h * (2 * x * (y - 1) * (y - 2 * x + x * y + 2) * exp(x - y)); in main()
299 double f = gridx.h * gridx.h * (2 * x * (y - 1) * (y - 2 * x + x * y + 2) * exp(x - y)); in main()
361 double f = gridx.h * gridx.h * (2 * x * (y - 1) * (y - 2 * x + x * y + 2) * exp(x - y)); in main()
404 return x * y * exp(x - y) * (1 - x) * (1 - y); in solution()
/petsc/src/ts/tutorials/ !
H A Dex45.c67 PetscScalar exp[1] = {0.}; in f0_quad_lin() local
68 …, NfAux, uOff, uOff_x, u, u_t, u_x, aOff, aOff_x, a, a_t, a_x, t, x, numConstants, constants, exp); in f0_quad_lin()
69 f0[0] = u_t[0] - exp[0]; in f0_quad_lin()
102 PetscScalar exp[1] = {0.}; in f0_quad_trig() local
103 …, NfAux, uOff, uOff_x, u, u_t, u_x, aOff, aOff_x, a, a_t, a_x, t, x, numConstants, constants, exp); in f0_quad_trig()
104 f0[0] = u_t[0] - exp[0]; in f0_quad_trig()
176 PetscScalar exp[1] = {0.}; in f0_trig_trig() local
177 …, NfAux, uOff, uOff_x, u, u_t, u_x, aOff, aOff_x, a, a_t, a_x, t, x, numConstants, constants, exp); in f0_trig_trig()
178 f0[0] = u_t[0] - exp[0]; in f0_trig_trig()
H A Dex8.py27 f[i] = xxdot[i-gxs] + (2.0*xx[i-gxs] - xx[i-1-gxs] - xx[i+1-gxs])/hx - hx*math.exp(xx[i-gxs])
41 P.setValues([i],[i-1,i,i+1],[-1.0/hx,2.0/hx-hx*math.exp(xx[i-gxs])+shift,-1.0/hx])
/petsc/src/binding/petsc4py/demo/legacy/ode/ !
H A Dce.py9 from math import sin, cos, exp
23 ) * exp(-lam * t)
/petsc/src/sys/tests/ !
H A Dex69.c17 for (i = 0; i < 100; i++) x[i] = exp(3.0 * i); in main()
/petsc/src/binding/petsc4py/demo/legacy/bratu3d/ !
H A Dbratu3d.py26 from numpy import exp, sqrt
95 - lambda_*exp(u)*hxhyhz
126 - lambda_*exp(u)*hxhyhz)
/petsc/src/tao/unconstrained/tutorials/ !
H A Dadjointreads.m114 % plot(xg,2.0*mu*pi*sin(pi*x).*exp(-pi^2*t*mu)./(2.0+exp(-pi^2*t*mu).*cos(pi*x)));
/petsc/include/ !
H A Dpetscmath.h66 #define PetscExpReal(a) exp(a)
221 #define PetscExpComplex(a) petsccomplexlib::exp(static_cast<PetscComplex>(a))
/petsc/src/tao/leastsquares/tutorials/ !
H A Dchwirut2.c633 …*f = y[i] - exp(-x[0] * t[i]) / (x[1] + x[2] * t[i]); /* expf() for single-precision breaks this e… in RunSimulation()
/petsc/share/petsc/datafiles/meshes/ !
H A Dtestcase3D.cas450 (ignition/octane-exp-gen 1.)
451 (ignition/equiv-exp-gen 1.)
452 (ignition/rpm-exp-gen 1.)
453 (ignition/temp-exp-gen 1.)
454 (ignition/press-exp-gen 1.)
457 (ignition/pre-exp-gen 0.0405)
458 (ignition/press-exp-de -1.7)
460 (ignition/octane-exp-de 3.402)
462 (ignition/pre-exp-de 0.01768)
463 (ignition/press-exp-hh 0.63)
[all …]
/petsc/include/petsc/private/ !
H A Dvecimpl.h74 PetscErrorCode (*exp)(Vec); member
/petsc/src/vec/vec/impls/mpi/ !
H A Dpbvec.c511 PetscDesignatedInitializer(exp, NULL),
/petsc/src/vec/vec/impls/seq/ !
H A Dbvec2.c770 PetscDesignatedInitializer(exp, NULL),
/petsc/src/vec/vec/impls/nest/ !
H A Dvecnest.c803 ops->exp = NULL; in VecNestSetOps_Private()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/ !
H A DVec.pyx2271 def exp(self) -> None: member in Vec
2272 """Replace each entry (xₙ) in the vector by exp(xₙ).
2290 exp, petsc.VecLog
/petsc/src/vec/vec/utils/ !
H A Dvinv.c1246 PetscCall(VecApplyUnary_Private(v, dctx, VecAsyncFnName(Exp), v->ops->exp, ScalarExp_Function)); in VecExpAsync_Private()

12