/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/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 | 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/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/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/icu/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/icu4c/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/chromium_org/third_party/WebKit/Source/platform/graphics/ |
H A D | Image.cpp | 107 FloatRect norm = rect; local 108 if (norm.width() < 0) { 109 norm.setX(norm.x() + norm.width()); 110 norm.setWidth(-norm.width()); 112 if (norm.height() < 0) { 113 norm.setY(norm [all...] |
/external/eigen/test/ |
H A D | householder.cpp | 47 VERIFY_IS_APPROX(v1.norm(), v2.norm()); 48 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(v1.tail(rows-1).norm(), v1.norm()); 52 VERIFY_IS_APPROX(v1.norm(), v2.norm()); 63 VERIFY_IS_APPROX(m1.norm(), m2.norm()); 64 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(m1.block(1,0,rows-1,cols).norm(), m1.norm()); [all...] |
H A D | adjoint.cpp | 48 // check basic properties of dot, norm, norm2 51 RealScalar ref = NumTraits<Scalar>::IsInteger ? RealScalar(0) : (std::max)((s1 * v1 + s2 * v2).norm(),v3.norm()); 57 VERIFY_IS_APPROX(v1.squaredNorm(), v1.norm() * v1.norm()); 59 VERIFY_IS_APPROX(v1, v1.norm() * v1.normalized()); 62 VERIFY_IS_APPROX(v1, v1.norm() * v3); 64 VERIFY_IS_APPROX(v3.norm(), RealScalar(1)); 70 ref = NumTraits<Scalar>::IsInteger ? 0 : (std::max)((std::max)(v1.norm(),v2.norm()),(st [all...] |
H A D | stable_norm.cpp | 49 && "the stable norm algorithm cannot be guaranteed on this computer"); 67 VERIFY_IS_MUCH_SMALLER_THAN(vzero.norm(), static_cast<RealScalar>(1)); 68 VERIFY_IS_APPROX(vrand.stableNorm(), vrand.norm()); 69 VERIFY_IS_APPROX(vrand.blueNorm(), vrand.norm()); 70 VERIFY_IS_APPROX(vrand.hypotNorm(), vrand.norm()); 80 VERIFY_IS_NOT_APPROX(internal::sqrt(copy(vbig.squaredNorm())), internal::abs(internal::sqrt(size)*big)); // here the default norm must fail 87 VERIFY_IS_NOT_APPROX(internal::sqrt(copy(vsmall.squaredNorm())), internal::abs(internal::sqrt(size)*small)); // here the default norm must fail 93 VERIFY_IS_APPROX(vrand.colwise().stableNorm(), vrand.colwise().norm()); 94 VERIFY_IS_APPROX(vrand.colwise().blueNorm(), vrand.colwise().norm()); 95 VERIFY_IS_APPROX(vrand.colwise().hypotNorm(), vrand.colwise().norm()); [all...] |
/external/ceres-solver/internal/ceres/ |
H A D | block_random_access_crs_matrix_test.cc | 98 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(), 106 EXPECT_NEAR((dense.block(3, 3 + 4, 4, 5) - 2 * 3 * Matrix::Ones(4, 5)).norm(), 110 EXPECT_NEAR((dense.block(3 + 4, 0, 5, 3) - 3 * 1 * Matrix::Ones(5, 3)).norm(), 115 EXPECT_NEAR(dense.norm(), sqrt(9. + 16. * 16. + 36. * 20. + 9. * 15.),
|
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 | 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...] |
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/eigen/unsupported/test/ |
H A D | splines.cpp | 125 VERIFY( (pt - pts.col(i)).norm() < 1e-14 ); 153 VERIFY( (pt - pts.col(i)).norm() < 1e-14 ); 193 VERIFY( (pt - pts.col(i)).norm() < 1e-14 ); 216 VERIFY( (pt - ref).matrix().norm() < 1e-14 ); 228 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/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();
|