/external/jmonkeyengine/engine/src/bullet-native/ |
H A D | com_jme3_bullet_collision_shapes_PlaneCollisionShape.cpp | 52 btVector3 norm = btVector3(); local 53 jmeBulletUtil::convert(env, normal, &norm); 54 btStaticPlaneShape* shape = new btStaticPlaneShape(norm, constant);
|
/external/libcxx/test/std/numerics/complex.number/cmplx.over/ |
H A D | norm.pass.cpp | 14 // norm(T x); 26 static_assert((std::is_same<decltype(std::norm(x)), double>::value), ""); 27 assert(std::norm(x) == norm(std::complex<double>(x, 0))); 34 static_assert((std::is_same<decltype(std::norm(x)), T>::value), ""); 35 assert(std::norm(x) == norm(std::complex<T>(x, 0)));
|
/external/eigen/doc/snippets/ |
H A D | PartialRedux_norm.cpp | 3 cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl;
|
H A D | RealQZ_compute.cpp | 13 << "\n|A-QSZ|: " << (A-qz.matrixQ()*qz.matrixS()*qz.matrixZ()).norm() 14 << ", |B-QTZ|: " << (B-qz.matrixQ()*qz.matrixT()*qz.matrixZ()).norm() 15 << "\n|QQ* - I|: " << (qz.matrixQ()*qz.matrixQ().adjoint() - MatrixXf::Identity(4,4)).norm() 16 << ", |ZZ* - I|: " << (qz.matrixZ()*qz.matrixZ().adjoint() - MatrixXf::Identity(4,4)).norm()
|
H A D | PartialPivLU_solve.cpp | 7 cout << "Relative error: " << (A*X-B).norm() / B.norm() << endl;
|
/external/eigen/doc/examples/ |
H A D | TutorialLinAlgExComputeSolveError.cpp | 12 double relative_error = (A*x - b).norm() / b.norm(); // norm() is L2 norm
|
H A D | Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp | 19 cout << "v.norm() = " << v.norm() << endl; 25 cout << "m.norm() = " << m.norm() << endl;
|
/external/svox/pico/lib/ |
H A D | picosig2.c | 1006 picoos_int32 *norm; local 1009 norm = sig_inObj->norm_window_p; 1011 norm[0] = 80224; 1012 norm[1] = 320832; 1013 norm[2] = 721696; 1014 norm[3] = 1282560; 1015 norm[4] = 2003104; 1016 norm[5] = 2882880; 1017 norm[6] = 3921376; 1018 norm[ [all...] |
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/ |
H A D | StringPool.java | 43 final String norm = pool.get(s); 44 if (norm == null) { 48 return norm;
|
/external/opencv/cxcore/src/ |
H A D | cxnorm.cpp | 57 norm = _update_op_( norm, t0 ); \ 58 norm = _update_op_( norm, t1 ); \ 64 norm = _update_op_( norm, t0 ); \ 65 norm = _update_op_( norm, t1 ); \ 72 norm = _update_op_( norm, t 971 double norm = 0, norm_diff = 0; local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_format_parse.py | 55 def __init__(self, type, norm, pure, size, name = ''): 57 self.norm = norm 65 if self.norm: 73 return self.type == other.type and self.norm == other.norm and self.pure == other.pure and self.size == other.size 81 if self.norm: 97 if self.norm: 121 '''Make up a short norm for a format, suitable to be used as suffix in 162 if channel.norm ! [all...] |
/external/mesa3d/src/mesa/tnl/ |
H A D | t_vb_texgen.c | 107 const GLfloat *norm = normal->start; local 110 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { 114 two_nu = 2.0F * DOT3(norm,u); 115 fx = f[i][0] = u[0] - norm[0] * two_nu; 116 fy = f[i][1] = u[1] - norm[1] * two_nu; 117 fz = f[i][2] = u[2] - norm[2] * two_nu; 135 GLfloat *norm = normal->start; local 138 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { 143 two_nu = 2.0F * DOT3(norm,u); 144 fx = f[i][0] = u[0] - norm[ 184 GLfloat *norm = normal->start; local 210 GLfloat *norm = normal->start; local 284 const GLfloat *norm = normal->start; local 389 const GLfloat *norm = normal->start; local 422 const GLfloat *norm = normal->start; local 451 const GLfloat *norm = normal->start; local [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | tstnrapi.cpp | 26 Normalizer norm(iter, UNORM_NFC); 27 if(norm.next()!=0xe4) { 32 Normalizer copy(norm); 74 norm.setIndexOnly(3); 75 if(norm.current()!=0x4e3d) { 134 norm.setMode(UNORM_NONE); 135 if(norm.first()!=0x61 || norm.next()!=0x308 || norm.last()!=0x2f800) {
|
/external/eigen/test/ |
H A D | householder.cpp | 45 VERIFY_IS_APPROX(v1.norm(), v2.norm()); 46 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(v1.tail(rows-1).norm(), v1.norm()); 50 VERIFY_IS_APPROX(v1.norm(), v2.norm()); 61 VERIFY_IS_APPROX(m1.norm(), m2.norm()); 62 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(m1.block(1,0,rows-1,cols).norm(), m1.norm()); [all...] |
H A D | stable_norm.cpp | 46 && "the stable norm algorithm cannot be guaranteed on this computer"); 72 VERIFY_IS_MUCH_SMALLER_THAN(vzero.norm(), static_cast<RealScalar>(1)); 73 VERIFY_IS_APPROX(vrand.stableNorm(), vrand.norm()); 74 VERIFY_IS_APPROX(vrand.blueNorm(), vrand.norm()); 75 VERIFY_IS_APPROX(vrand.hypotNorm(), vrand.norm()); 85 VERIFY_IS_NOT_APPROX(sqrt(copy(vbig.squaredNorm())), abs(sqrt(size)*big)); // here the default norm must fail 92 VERIFY_IS_NOT_APPROX(sqrt(copy(vsmall.squaredNorm())), abs(sqrt(size)*small)); // here the default norm must fail 98 VERIFY_IS_APPROX(vrand.colwise().stableNorm(), vrand.colwise().norm()); 99 VERIFY_IS_APPROX(vrand.colwise().blueNorm(), vrand.colwise().norm()); 100 VERIFY_IS_APPROX(vrand.colwise().hypotNorm(), vrand.colwise().norm()); [all...] |
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/ |
H A D | norm.pass.cpp | 14 // norm(const complex<T>& x); 26 assert(norm(z) == 25); 34 double r = norm(x[i]);
|
/external/ceres-solver/internal/ceres/ |
H A D | block_random_access_diagonal_matrix_test.cc | 97 EXPECT_NEAR((dense.block(0, 0, 3, 3) - Matrix::Ones(3, 3)).norm(), 102 EXPECT_NEAR((dense.block(3, 3, 4, 4) - 2 * 2 * Matrix::Ones(4, 4)).norm(), 107 EXPECT_NEAR((dense.block(7, 7, 5, 5) - 3 * 3 * Matrix::Ones(5, 5)).norm(), 112 EXPECT_NEAR(dense.norm(), sqrt(9.0 + 16. * 16. + 81.0 * 25.), kTolerance);
|
H A D | block_random_access_sparse_matrix_test.cc | 101 EXPECT_NEAR((dense.block(0, 0, 3, 3) - Matrix::Ones(3, 3)).norm(), 105 EXPECT_NEAR((dense.block(3, 3, 4, 4) - 2 * 2 * Matrix::Ones(4, 4)).norm(), 109 EXPECT_NEAR((dense.block(3, 3 + 4, 4, 5) - 2 * 3 * Matrix::Ones(4, 5)).norm(), 113 EXPECT_NEAR((dense.block(3 + 4, 0, 5, 3) - 3 * 1 * Matrix::Ones(5, 3)).norm(), 118 EXPECT_NEAR(dense.norm(), sqrt(9. + 16. * 16. + 36. * 20. + 9. * 15.),
|
H A D | dense_sparse_matrix_test.cc | 65 EXPECT_EQ((y_a - y_b).norm(), 0); 106 EXPECT_EQ((b1 - b2).norm(), 0); 120 EXPECT_EQ((b1 - b2).norm(), 0); 135 EXPECT_EQ((b1 - b2).norm(), 0); 145 EXPECT_EQ((b1 - b2).norm(), 0); 165 EXPECT_EQ((tsm_dense - dsm_dense).norm(), 0.0);
|
H A D | small_blas_test.cc | 73 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) 91 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) 108 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) 156 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) 173 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) 190 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) 229 EXPECT_NEAR((c_plus_ref - c_plus).norm(), 0.0, kTolerance) 238 EXPECT_NEAR((c_minus_ref - c_minus).norm(), 0.0, kTolerance) 247 EXPECT_NEAR((c_assign_ref - c_assign).norm(), 0.0, kTolerance) 278 EXPECT_NEAR((c_plus_ref - c_plus).norm(), 0. [all...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | CalcSpillWeights.h | 65 NormalizingFn norm = normalizeSpillWeight) 66 : MF(mf), LIS(lis), VRM(vrm), Loops(loops), MBFI(mbfi), normalize(norm) {} 78 VirtRegAuxInfo::NormalizingFn norm =
|
/external/eigen/unsupported/test/ |
H A D | splines.cpp | 129 VERIFY( (pt - pts.col(i)).norm() < 1e-14 ); 157 VERIFY( (pt - pts.col(i)).norm() < 1e-14 ); 197 VERIFY( (pt - pts.col(i)).norm() < 1e-14 ); 220 VERIFY( (pt - ref).matrix().norm() < 1e-14 ); 232 VERIFY( (pt - ref).matrix().norm() < 1e-14 );
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/ |
H A D | StripBox.java | 153 Vector3f norm = new Vector3f(); 156 norm.set(vert[i]).normalizeLocal(); 158 normals[i * 3 + 0] = norm.x; 159 normals[i * 3 + 1] = norm.x; 160 normals[i * 3 + 2] = norm.x;
|
/external/skia/tools/ |
H A D | sk_tool_utils.cpp | 240 static inline void norm_to_rgb(SkBitmap* bm, int x, int y, const SkVector3& norm) { argument 241 SkASSERT(SkScalarNearlyEqual(norm.length(), 1.0f)); 242 unsigned char r = static_cast<unsigned char>((0.5f * norm.fX + 0.5f) * 255); 243 unsigned char g = static_cast<unsigned char>((-0.5f * norm.fY + 0.5f) * 255); 244 unsigned char b = static_cast<unsigned char>((0.5f * norm.fZ + 0.5f) * 255); 253 SkVector3 norm; local 257 norm.fX = (x + 0.5f - center.fX) / halfSize.fX; 258 norm.fY = (y + 0.5f - center.fY) / halfSize.fY; 260 SkScalar tmp = norm.fX * norm 279 SkPoint3 norm; local 319 SkPoint3 norm; local [all...] |
/external/eigen/test/eigen2/ |
H A D | eigen2_regression.cpp | 41 } while( cur_point.norm() < 0.5 42 || cur_point.norm() > 2.0 ); 60 typename VectorType::Scalar error = (result - original).norm() / original.norm(); 75 typename VectorType::Scalar error = (result.coeffs() - original.coeffs()).norm() / original.coeffs().norm();
|