/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/ |
Common.glsllib | 1 vec3 Common_UnpackNormal(in vec3 norm){
2 return (norm * vec3(2.0)) - vec3(1.0);
5 vec3 Common_UnpackNormalLA(in vec4 norm){
6 vec3 newNorm = norm.agb;
11 vec3 Common_PackNormal(in vec3 norm){
12 return (norm * vec3(0.5)) + vec3(0.5);
|
Lighting.glsllib | 10 float Lighting_Diffuse(vec3 norm, vec3 lightdir){
11 return max(0.0, dot(norm, lightdir));
14 float Lighting_Specular(vec3 norm, vec3 viewdir, vec3 lightdir, float shiny){
15 vec3 refdir = reflect(-lightdir, norm);
|
/external/eigen/doc/snippets/ |
PartialRedux_norm.cpp | 3 cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl;
|
MatrixBase_operatorNorm.cpp | 2 cout << "The operator norm of the 3x3 matrix of ones is "
|
SelfAdjointView_operatorNorm.cpp | 2 cout << "The operator norm of the 3x3 matrix of ones is "
|
PartialRedux_squaredNorm.cpp | 3 cout << "Here is the square norm of each row:" << endl << m.rowwise().squaredNorm() << 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;
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_glob.py | 16 def norm(self, *parts): member in class:GlobTests 20 filename = self.norm(*parts) 38 os.symlink(self.norm('broken'), self.norm('sym1')) 39 os.symlink('broken', self.norm('sym2')) 40 os.symlink(os.path.join('a', 'bcd'), self.norm('sym3')) 66 eq(self.glob('a'), [self.norm('a')]) 67 eq(self.glob('a', 'D'), [self.norm('a', 'D')]) 68 eq(self.glob('aab'), [self.norm('aab')]) 87 eq(self.glob('a*'), map(self.norm, ['a', 'aab', 'aaa']) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_glob.py | 16 def norm(self, *parts): member in class:GlobTests 20 filename = self.norm(*parts) 38 os.symlink(self.norm('broken'), self.norm('sym1')) 39 os.symlink('broken', self.norm('sym2')) 40 os.symlink(os.path.join('a', 'bcd'), self.norm('sym3')) 66 eq(self.glob('a'), [self.norm('a')]) 67 eq(self.glob('a', 'D'), [self.norm('a', 'D')]) 68 eq(self.glob('aab'), [self.norm('aab')]) 87 eq(self.glob('a*'), map(self.norm, ['a', 'aab', 'aaa']) [all...] |
/external/chromium_org/third_party/icu/source/tools/gennorm2/ |
n2builder.h | 34 struct Norm; 78 Norm *allocNorm(); 79 Norm *getNorm(UChar32 c); 80 Norm *createNorm(UChar32 c); 81 Norm *checkNormForMapping(Norm *p, UChar32 c); // check for permitted overrides 83 const Norm &getNormRef(UChar32 c) const; 85 UBool combinesWithCCBetween(const Norm &norm, uint8_t lowCC, uint8_t highCC) const; 86 UChar32 combine(const Norm &norm, UChar32 trail) const [all...] |
n2builder.cpp | 98 struct Norm { 165 normMem=utm_open("gennorm2 normalization structs", 10000, 0x110100, sizeof(Norm)); 166 norms=allocNorm(); // unused Norm struct at index 0 186 Norm *Normalizer2DataBuilder::allocNorm() { 187 Norm *p=(Norm *)utm_alloc(normMem); 188 norms=(Norm *)utm_getStart(normMem); // in case it got reallocated 192 /* get an existing Norm unit */ 193 Norm *Normalizer2DataBuilder::getNorm(UChar32 c) { 201 const Norm &Normalizer2DataBuilder::getNormRef(UChar32 c) const [all...] |
/external/icu4c/tools/gennorm2/ |
n2builder.h | 34 struct Norm; 78 Norm *allocNorm(); 79 Norm *getNorm(UChar32 c); 80 Norm *createNorm(UChar32 c); 81 Norm *checkNormForMapping(Norm *p, UChar32 c); // check for permitted overrides 83 const Norm &getNormRef(UChar32 c) const; 85 UBool combinesWithCCBetween(const Norm &norm, uint8_t lowCC, uint8_t highCC) const; 86 UChar32 combine(const Norm &norm, UChar32 trail) const [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...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/Dromaeo/ |
sunspider-math-spectral-norm.html | 9 DRT.setup("sunspider-math-spectral-norm");
|
/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);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/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/chromium_org/third_party/mesa/src/src/mesa/tnl/ |
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[0] * two_nu 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/ |
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[0] * two_nu 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/eigen/Eigen/src/Eigenvalues/ |
MatrixBaseEigenvalues.h | 98 /** \brief Computes the L2 operator norm 99 * \returns Operator norm of the matrix. 102 * This function computes the L2 operator norm of a matrix, which is also 103 * known as the spectral norm. The norm of a matrix \f$ A \f$ is defined to be 105 * where the maximum is over all vectors and the norm on the right is the 106 * Euclidean vector norm. The norm equals the largest singular value, which is 111 * by SelfAdjointView::eigenvalues(), to compute the operator norm of a 135 /** \brief Computes the L2 operator norm [all...] |
/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...] |
/external/svox/pico/lib/ |
picosig2.c | 1006 picoos_int32 *norm; local [all...] |