/external/eigen/test/ |
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...] |
stable_norm.cpp | 51 && "the stable norm algorithm cannot be guaranteed on this computer"); 77 VERIFY_IS_MUCH_SMALLER_THAN(vzero.norm(), static_cast<RealScalar>(1)); 78 VERIFY_IS_APPROX(vrand.stableNorm(), vrand.norm()); 79 VERIFY_IS_APPROX(vrand.blueNorm(), vrand.norm()); 80 VERIFY_IS_APPROX(vrand.hypotNorm(), vrand.norm()); 90 VERIFY_IS_NOT_APPROX(sqrt(copy(vbig.squaredNorm())), abs(sqrt(size)*big)); // here the default norm must fail 97 VERIFY_IS_NOT_APPROX(sqrt(copy(vsmall.squaredNorm())), abs(sqrt(size)*small)); // here the default norm must fail 103 VERIFY_IS_APPROX(vrand.colwise().stableNorm(), vrand.colwise().norm()); 104 VERIFY_IS_APPROX(vrand.colwise().blueNorm(), vrand.colwise().norm()); 105 VERIFY_IS_APPROX(vrand.colwise().hypotNorm(), vrand.colwise().norm()); [all...] |
adjoint.cpp | 33 RealScalar ref = NumTraits<Scalar>::IsInteger ? RealScalar(0) : (std::max)((s1 * v1 + s2 * v2).norm(),v3.norm()); 37 VERIFY_IS_APPROX(v1.squaredNorm(), v1.norm() * v1.norm()); 39 VERIFY_IS_APPROX(v1, v1.norm() * v1.normalized()); 42 VERIFY_IS_APPROX(v1, v1.norm() * v3); 44 VERIFY_IS_APPROX(v3.norm(), RealScalar(1)); 47 ref = NumTraits<Scalar>::IsInteger ? 0 : (std::max)((std::max)(v1.norm(),v2.norm()),(std::max)((square * v2).norm(),(square.adjoint() * v1).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...] |
/external/libcxx/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]);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/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_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);
|
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.),
|
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);
|
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.0, kTolerance [all...] |
block_sparse_matrix_test.cc | 79 EXPECT_LT((y_a - y_b).norm(), 1e-12); 91 EXPECT_LT((y_a - y_b).norm(), 1e-12); 100 EXPECT_LT((y_a - y_b).norm(), 1e-12); 108 EXPECT_LT((m_a - m_b).norm(), 1e-12);
|
corrector_test.cc | 206 ASSERT_NEAR((g_res - res).norm(), 0.0, 1e-10); 207 ASSERT_NEAR((g_jac - jac).norm(), 0.0, 1e-10); 209 ASSERT_NEAR((g_grad - c_grad).norm(), 0.0, 1e-10); 267 ASSERT_NEAR((g_res - res).norm(), 0.0, 1e-10); 268 ASSERT_NEAR((g_jac - jac).norm(), 0.0, 1e-10); 270 ASSERT_NEAR((g_grad - c_grad).norm(), 0.0, 1e-10); 271 ASSERT_NEAR((g_hess - c_hess).norm(), 0.0, 1e-10);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
NormFilter.java | 28 * Filter to calculate the 2-norm of the inputs. i.e. sqrt(x^2 + y^2) 45 .addOutputPort("norm", Signature.PORT_REQUIRED, floatT) 56 float norm = (float) Math.hypot(xValue, yValue); local 57 if (mLogVerbose) Log.v(TAG, "Norm = " + norm); 58 OutputPort outPort = getConnectedOutputPort("norm"); 60 outFrame.setValue(norm);
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
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 != ref_channel.norm [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
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 != ref_channel.norm [all...] |
/external/eigen/unsupported/test/ |
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 );
|
/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...] |
LocationCluster.java | 122 double norm = 0f; local 125 norm += vector[i] * vector[i]; 127 norm = Math.sqrt(norm); 132 (vector[i] / norm) * Math.sin(radian);
|
/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();
|
/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/chromium_org/third_party/webrtc/common_audio/signal_processing/ |
levinson_durbin.c | 38 int16_t 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/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/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/radeon/ |
radeon_maos_vbtmp.h | 46 GLuint (*norm)[4]; 117 norm = (GLuint (*)[4])VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; 120 norm = (GLuint (*)[4])&ctx->Current.Attrib[VERT_ATTRIB_NORMAL]; 164 norm = (GLuint (*)[4])((GLubyte *)norm + start * norm_stride); 189 v[0].ui = norm[0][0]; 190 v[1].ui = norm[0][1]; 191 v[2].ui = norm[0][2]; 193 norm = (GLuint (*)[4])((GLubyte *)norm + norm_stride) [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_maos_vbtmp.h | 46 GLuint (*norm)[4]; 117 norm = (GLuint (*)[4])VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; 120 norm = (GLuint (*)[4])&ctx->Current.Attrib[VERT_ATTRIB_NORMAL]; 164 norm = (GLuint (*)[4])((GLubyte *)norm + start * norm_stride); 189 v[0].ui = norm[0][0]; 190 v[1].ui = norm[0][1]; 191 v[2].ui = norm[0][2]; 193 norm = (GLuint (*)[4])((GLubyte *)norm + norm_stride) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_test_main.c | 54 type.norm ? "n" : "", 128 if(type.norm && value < -1.0) 130 if(type.norm && value > 1.0) 197 if(!type.norm) { 306 if(type.sign && !type.norm) { 339 format = type.norm ? "%2x" : "%4llu"; 343 format = type.norm ? "%4x" : "%6llx"; 347 format = type.norm ? "%8x" : "%11llx"; 351 format = type.norm ? "%16x" : "%21llx";
|