/dports/math/unuran/unuran-1.8.1/tests/testdistributions/ |
H A D | vc_cauchy_RoU_ball.c | 74 double normsq; in _unur_logpdf_multicauchy_RoU_ball() local 77 for (i=0, normsq=0.; i<dim; i++) normsq += x[i]*x[i]; in _unur_logpdf_multicauchy_RoU_ball() 78 return (dim+1.)*(M_LN2 - log(1.+normsq)); in _unur_logpdf_multicauchy_RoU_ball() 87 double normsq; in _unur_dlogpdf_multicauchy_RoU_ball() local 90 for (i=0, normsq=0.; i<dim; i++) in _unur_dlogpdf_multicauchy_RoU_ball() 91 normsq += x[i]*x[i]; in _unur_dlogpdf_multicauchy_RoU_ball() 94 result[i] = -2.*(dim+1.)*x[i] / (1.+normsq); in _unur_dlogpdf_multicauchy_RoU_ball()
|
/dports/science/clhep/2.4.1.0/CLHEP/Matrix/src/ |
H A D | MatrixLinear.cc | 405 double normsq=v.normsq(); in house_with_update() local 407 normsq-=v(1)*v(1); in house_with_update() 409 normsq+=v(1)*v(1); in house_with_update() 423 double normsq=0; in house_with_update() local 439 normsq-=(*vrc)*(*vrc); in house_with_update() 461 double normsq=0; in house_with_update2() local 797 double normsq=0; in tridiagonal() local 819 (*pr)*=2/normsq; in tridiagonal() 873 double normsq=0; in col_house() local 904 double normsq=0; in row_house() local [all …]
|
/dports/science/lammps/lammps-stable_29Sep2021/src/PTM/ |
H A D | ptm_neighbour_ordering.cpp | 86 static int calculate_voronoi_face_areas(int num_points, const double (*_points)[3], double* normsq,… in calculate_voronoi_face_areas() argument 97 v->nplane(x,y,z,normsq[i],i); in calculate_voronoi_face_areas() 186 double normsq[PTM_MAX_INPUT_POINTS]; in _calculate_neighbour_ordering() local 197 normsq[i] = x*x + y*y + z*z; in _calculate_neighbour_ordering() 198 max_norm = std::max(max_norm, normsq[i]); in _calculate_neighbour_ordering() 205 …int ret = calculate_voronoi_face_areas(num_points, points, normsq, max_norm, voronoi_handle, calc_… in _calculate_neighbour_ordering() 223 data[i].dist = normsq[i]; in _calculate_neighbour_ordering()
|
/dports/devel/plan9port/plan9port-1f098efb7370a0b28306d10681e21883fb1c1507/src/libdraw/ |
H A D | bezier.c | 31 normsq(Point p) in normsq() function 45 return normsq(p); in psdist() 46 den = normsq(b); in psdist() 48 return normsq(subpt(b, p)); in psdist() 49 return normsq(subpt(divpt(mulpt(b, num), den), p)); in psdist()
|
/dports/science/clhep/2.4.1.0/CLHEP/Matrix/Matrix/ |
H A D | Vector.icc | 22 inline double HepVector::normsq() const {return dot((*this),(*this));} 23 inline double HepVector::norm() const {return sqrt(normsq());}
|
H A D | Vector.h | 109 inline double normsq() const;
|
/dports/science/fasthenry/fasthenry-3.0wr/src/fasthenry/ |
H A D | barnoldi.c | 175 double normsq; local 179 for (normsq = 0.0, i = 0; i < numlin; i++) 180 normsq += (Bmat[i][k] * Bmat[i][k]); 181 Rmat[k][k] = sqrt(normsq); 230 double normsq; local 243 for (normsq = 0.0, i = 0; i < numlin; i++) 244 normsq += (tcol[i] * Bmat[i][k]); 245 Rmat[k][k] = sqrt(normsq);
|
/dports/math/libmesh/libmesh-1.6.2/src/utils/ |
H A D | statistics.C | 39 Real normsq = 0.; in l2_norm() local 42 normsq += ((*this)[i] * (*this)[i]); in l2_norm() 44 return std::sqrt(normsq); in l2_norm()
|
/dports/math/kig/kig-21.12.3/objects/ |
H A D | inversion_type.cc | 75 double normsq = relp.x*relp.x + relp.y*relp.y; in calc() local 76 if ( normsq == 0 ) return new InvalidImp; in calc() 77 return new PointImp( refc + (refrsq/normsq)*relp ); in calc() 321 double normsq = relp.x*relp.x + relp.y*relp.y; in calc() local 322 if ( normsq == 0 ) return new InvalidImp; in calc() 323 return new PointImp( center + (radiussq/normsq)*relp ); in calc()
|
/dports/math/moab/fathomteam-moab-7bde9dfb84a8/src/moab/point_locater/element_maps/ |
H A D | quadratic_hex_map.hpp | 136 while ( normsq( delta) > error_tol_sqr) { in solve_inverse() 139 << " Err: " << sqrt( normsq( delta)) << " Iterate: "; in solve_inverse()
|
H A D | spectral_hex_map.hpp | 108 while ( normsq( delta) > error_tol_sqr) { in solve_inverse() 111 << " Err: " << sqrt( normsq( delta)) << " Iterate: "; in solve_inverse()
|
/dports/math/tmv/tmv-0.75/tests/ |
H A D | TMV_TestVectorArith.h | 35 RT normsq(0); in TestV() 39 normsq += tmv::TMV_NORM(v(i)); in TestV() 45 Assert(Equal2(Norm2(a),tmv::TMV_SQRT(normsq),eps*tmv::TMV_SQRT(normsq)), in TestV() 52 Assert(Equal2(NormSq(a),normsq,eps*normsq),label+" NormSq"); in TestV()
|
/dports/science/siesta/siesta-4.1.5/Src/ |
H A D | m_digest_nnkp.F90 | 548 if ( normsq .lt. minnormsq) then 550 minnormsq = normsq
|
/dports/science/erkale-pseudopotentials/erkale-870e772f09631b3dbdd99a18e4f3d4786d684a01/src/ |
H A D | basis.h | 150 inline double normsq(const coords_t & r) { in normsq() function 156 return sqrt(normsq(r)); in norm()
|
H A D | badergrid.cpp | 302 dist(ia)=normsq(shellpoints[ip].r-maxima[ia]); in construct_voronoi()
|
H A D | dftgrid.cpp | 285 if(normsq(nuccoords[info.atind].r-coord_p) < scrthr) in becke_weights() 3055 if(normsq(grid[ip].r-cen)<=rangesq) { in compute_bf()
|
/dports/science/erkale/erkale-8297aefe5aac9dbbb291e04c07661f3cff94a99a/src/ |
H A D | basis.h | 150 inline double normsq(const coords_t & r) { in normsq() function 156 return sqrt(normsq(r)); in norm()
|
H A D | badergrid.cpp | 302 dist(ia)=normsq(shellpoints[ip].r-maxima[ia]); in construct_voronoi()
|
H A D | dftgrid.cpp | 285 if(normsq(nuccoords[info.atind].r-coord_p) < scrthr) in becke_weights() 3055 if(normsq(grid[ip].r-cen)<=rangesq) { in compute_bf()
|
/dports/math/kig/kig-21.12.3/misc/ |
H A D | conic-common.cpp | 298 double normsq = alpha*alpha + beta*beta; in calcConicPolarLine() local 300 if (normsq < 1e-10) // line at infinity in calcConicPolarLine() 307 Coordinate reta = -gamma/normsq * Coordinate (alpha, beta); in calcConicPolarLine()
|
/dports/science/clhep/2.4.1.0/CLHEP/Matrix/test/ |
H A D | testMatrix.cc | 616 cout << "Normsq=" << vc.normsq() << "Norm=" << vc.norm() << endl; in main() 814 double psq = p[i].normsq(); in main()
|
/dports/biology/py-biopython/biopython-1.79/Tests/ |
H A D | test_PDB_vectors.py | 80 self.assertEqual(v1.normsq(), 1.0)
|
/dports/biology/py-biopython/biopython-1.79/Bio/PDB/ |
H A D | vectors.py | 330 def normsq(self): member in Vector
|