Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 25 of 44) sorted by relevance

12

/petsc/src/mat/tests/output/
H A Dex99_1.out1 MatMult: norm difference < sqrt(eps_machine)
2 MatMultTranspose: norm difference < sqrt(eps_machine)
3 MatMultAdd v2==v3: norm difference < sqrt(eps_machine)
4 MatMultAdd v2!=v3: norm difference < sqrt(eps_machine)
5 MatMultTransposeAdd v2==v3: norm difference < sqrt(eps_machine)
6 MatMultTransposeAdd v2!=v3: norm difference < sqrt(eps_machine)
H A Dex97_1.out1 MatMult: norm difference < sqrt(eps_machine)
2 MatMultTranspose: norm difference < sqrt(eps_machine)
3 MatMultAdd v2==v3: norm difference < sqrt(eps_machine)
4 MatMultAdd v2!=v3: norm difference < sqrt(eps_machine)
5 MatMultTransposeAdd v2==v3: norm difference < sqrt(eps_machine)
6 MatMultTransposeAdd v2!=v3: norm difference < sqrt(eps_machine)
H A Dex227_no_prefix.out4 Constants are likely null vector || A * 1/sqrt(N) || = 0.
H A Dex227_prefix.out4 Constants are likely null vector || A * 1/sqrt(N) || = 0.
/petsc/src/dm/tutorials/
H A Dex26.c14 PetscReal *zeros, *weights, scale, h, sigma = 1 / sqrt(2), g = 0, mu = 0; in main()
51 …for (s = 0; s < n; s++) g += weights[s] * PetscPowRealInt(sqrt(2) * sigma * zeros[s] + mu, moment); in main()
52 g /= sqrt(PETSC_PI); in main()
/petsc/src/sys/tests/output/
H A Dex25_1.out2 sqrt(0.500000) = 0.707107
30 sqrt(0.500000) = 0.707107
/petsc/src/tao/leastsquares/tutorials/matlab/more_wild_probs/
H A Ddfoxs.m112 ss = ss+(sqrt(i/j)*((sin(log(sqrt(i/j))))^5+(cos(log(sqrt(i/j))))^5));
H A Ddfovec.m109 r = sqrt(x(1)^2+x(2)^2);
115 fvec(2) = sqrt(5)*(x(3) - x(4));
117 fvec(4) = sqrt(10)*(x(1) - x(4))^2;
247 v2 = sqrt (x(i)^2 +i/j);
H A Dg_dfovec_1d.m184 r= sqrt(tmp_dfovec_1d_00018);
217 g_fvec(2)= sqrt(5)* g_tmp_dfovec_1d_00023;
218 fvec(2)= sqrt(5)* tmp_dfovec_1d_00023;
237 g_fvec(4)= sqrt(10)* g_tmp_dfovec_1d_00027;
238 fvec(4)= sqrt(10)* tmp_dfovec_1d_00027;
760 v2= sqrt(tmp_dfovec_1d_00123);
/petsc/src/snes/tutorials/
H A Dex29view.m6 n = sqrt(m/4);
H A Dex75.c87 r = sqrt(a * a + b * b); in SolKxSolution()
88 Rp = sqrt((r + a) / 2.0); in SolKxSolution()
89 Rm = sqrt((r - a) / 2.0); in SolKxSolution()
/petsc/src/binding/petsc4py/demo/legacy/ode/
H A Dfastslowsplit.py26 u[0] = np.sqrt(2.0)
27 u[1] = np.sqrt(3.0)
/petsc/src/dm/impls/plex/tests/
H A Dex42.c152 for (int l = 0; l < 1; ++l) xxsq[j][k] += xx[j][l] * xx[k][l] / (sqrt(modxxsq) * modxxsq); in SetupMassGeoSphere()
156 …{1. / sqrt(modxxsq) - xxsq[0][0], -xxsq[0][1], -xxsq[0][2] … in SetupMassGeoSphere()
157 …{-xxsq[1][0], 1. / sqrt(modxxsq) - xxsq[1][1], -xxsq[1][2] … in SetupMassGeoSphere()
158 …{-xxsq[2][0], -xxsq[2][1], 1. / sqrt(modxxsq) - xxsq[2][2]} in SetupMassGeoSphere()
170 const CeedScalar modJ = sqrt(J[0][0] * J[0][0] + J[1][0] * J[1][0] + J[2][0] * J[2][0]); in SetupMassGeoSphere()
/petsc/src/binding/petsc4py/test/
H A Dtest_tao.py3 from math import sqrt
170 self.assertAlmostEqual(x[0], 0.5 + sqrt(7) / 2, places=4)
171 self.assertAlmostEqual(x[1], 2 + sqrt(7) / 2, places=4)
H A Dtest_vec.py47 from math import sqrt
54 self.assertAlmostEqual(n2, sqrt(self.vec.getSize()))
68 from math import sqrt
72 self.assertAlmostEqual(n2, sqrt(self.vec.getSize()))
/petsc/src/ts/tutorials/power_grid/
H A Dex7.m13 n = size(A{1}); n = sqrt(n(1));
/petsc/src/tao/leastsquares/tutorials/
H A DtomographyGenerateData.m14 NTau = ceil(sqrt(sum(WSz.^2))); NTau = NTau + rem(NTau-Ny,2); % number of discrete beam, enough to …
34 Nx = sqrt(numel(xGT)); Ny = Nx; WSz = [Ny, Nx];
/petsc/src/dm/impls/plex/kokkos/
H A Dplexlocalizationletkf.kokkos.cxx224 PetscReal radius = std::sqrt(radius2); in DMPlexGetLETKFLocalizationMatrix()
229 PetscReal dist = std::sqrt(best_dists_dev(i, k)); in DMPlexGetLETKFLocalizationMatrix()
/petsc/src/binding/petsc4py/demo/legacy/bratu3d/
H A Dbratu3d.py26 from numpy import exp, sqrt
60 x[i, j, k] = scale*sqrt(min_kij)
/petsc/src/snes/interface/noise/
H A Dsnesnoise.c161 *hopt = 1.68 * sqrt(*fnoise / PetscAbsScalar(fder2)); in SNESDiffParameterCompute_More()
171 h = PetscMax(1.0e-3, sqrt(hl / hu)) * hu; in SNESDiffParameterCompute_More()
/petsc/src/benchmarks/
H A DbenchmarkAssembly.py62 rows = np.sqrt(sizes)
/petsc/src/ksp/ksp/tutorials/amrex/
H A DMyTest.cxx213 fab(i, j, k) = std::sqrt(0.5) * (rx + ry); in initData()
/petsc/src/benchmarks/streams/
H A DSSEVersion.c255 rmstime[j] = sqrt(rmstime[j] / (double)NTIMES); in main()
/petsc/src/binding/petsc4py/demo/legacy/wrap-swig/
H A DBratu3D.c69 x[k][j][i] = temp1*sqrt(PetscMin((PetscReal)(PetscMin(i,Mx-i-1))*hx,tempj)); in FormInitGuess()
/petsc/src/binding/petsc4py/demo/legacy/wrap-cython/
H A DBratu3Dimpl.c70 x[k][j][i] = temp1*sqrt(PetscMin((PetscReal)(PetscMin(i,Mx-i-1))*hx,tempj)); in FormInitGuess()

12