/ndk/sources/cxx-stl/llvm-libc++/test/numerics/complex.number/cmplx.over/ |
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/jmonkeyengine/engine/src/bullet-native/ |
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/ |
PartialRedux_norm.cpp | 3 cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl;
|
PartialPivLU_solve.cpp | 7 cout << "Relative error: " << (A*X-B).norm() / B.norm() << endl;
|
/external/eigen/doc/examples/ |
TutorialLinAlgExComputeSolveError.cpp | 12 double relative_error = (A*x - b).norm() / b.norm(); // norm() is L2 norm
|
Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp | 19 cout << "v.norm() = " << v.norm() << endl; 25 cout << "m.norm() = " << m.norm() << endl;
|
/external/svox/pico/lib/ |
picosig2.c | 1006 picoos_int32 *norm; local [all...] |
/external/opencv/cxcore/src/ |
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, t0 ); 971 double norm = 0, norm_diff = 0; local [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
autocorr.c | 38 Word32 i, norm, shift; local 66 norm = norm_l(L_sum); 67 shift = 4 - (norm >> 1); 94 norm = norm_l(L_sum); 95 L_sum = (L_sum << norm); 115 L_sum1 = L_sum1<<norm; 116 L_sum = L_sum<<norm;
|
/external/icu4c/test/intltest/ |
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/ |
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...] |
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()),(std::max)((square * v2).norm(),(square.adjoint() * v1).norm())) [all...] |
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...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
autocorr.cpp | 171 norm = normalized autocorrelation at lag zero of type Word16 207 Word16 i, j, norm; 252 norm = norm_l (sum); 253 sum = L_shl (sum, norm); 267 sum = L_shl (sum, norm); 271 norm = sub (norm, overfl_shft); 273 return norm; 311 register Word16 norm; local 414 norm = norm_l(sum) 416 sum <<= norm; local [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/complex.number/complex.value.ops/ |
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/ |
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.),
|
/external/eigen/unsupported/test/ |
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/ |
StripBox.java | 153 Vector3f norm = new Vector3f(); local 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;
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
BaseCluster.java | 189 double norm = 0; local 191 norm += mCenter[i] * mCenter[i]; 193 norm = Math.sqrt(norm); 195 mCenter[i] /= norm; 203 double norm = 0; local 206 norm += mCenter[i] * mCenter[i]; 208 norm = Math.sqrt(norm); 210 mCenter[i] /= norm; [all...] |
/external/eigen/test/eigen2/ |
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();
|
/external/jmonkeyengine/engine/src/test/jme3test/post/ |
TestSSAO.java | 66 Texture norm = assetManager.loadTexture("Textures/Terrain/BrickWall/BrickWall_normal.jpg"); local 67 norm.setWrap(Texture.WrapMode.Repeat); 69 mat.setTexture("NormalMap", norm);
|
/cts/apps/CtsVerifier/lib/colorchecker/ |
whitebalancetest.cpp | 111 float norm = color/ 255.0f; local 115 if (norm > 0.04045f) { 116 linearColor = pow(((norm + 0.055f) / 1.055f), 2.4f); 118 linearColor = norm / 12.92f;
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
Quaternion.java | 397 float norm = norm();
local 398 // we explicitly test norm against one here, saving a division
400 float s = (norm == 1f) ? 2f : (norm > 0f) ? 2f / norm : 0;
417 // using s=2/norm (instead of 1/norm) saves 9 multiplications by 2 here
442 float norm = norm();
local 506 float norm = norm(); local 1079 public float norm() { method in class:Quaternion 1117 float norm = norm(); local 1135 float norm = norm(); local [all...] |
/external/webrtc/src/common_audio/signal_processing/ |
levinson_durbin.c | 38 WebRtc_Word16 norm; local 42 norm = WebRtcSpl_NormW32(R[0]); 46 temp1W32 = WEBRTC_SPL_LSHIFT_W32(R[i], norm); 142 norm = WebRtcSpl_NormW32(temp3W32); 143 if ((Alpha_exp <= norm) || (temp3W32 == 0)) 224 norm = WebRtcSpl_NormW32(temp1W32); 225 temp1W32 = WEBRTC_SPL_LSHIFT_W32(temp1W32, norm); 232 Alpha_exp = Alpha_exp + norm;
|
/external/webkit/Source/WebCore/platform/graphics/skia/ |
ImageSkia.cpp | 311 FloatRect norm = rect; local 312 if (norm.width() < 0) { 313 norm.setX(norm.x() + norm.width()); 314 norm.setWidth(-norm.width()); 316 if (norm.height() < 0) { 317 norm.setY(norm.y() + norm.height()) [all...] |