Home
last modified time | relevance | path

Searched refs:square (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/external/eigen/test/
Dproduct.h44 square = RowSquareMatrixType::Random(rows, rows), in product() local
68 VERIFY_IS_APPROX(square*(m1 + m2), square*m1+square*m2); in product()
69 VERIFY_IS_APPROX(square*(m1 - m2), square*m1-square*m2); in product()
72 VERIFY_IS_APPROX(s1*(square*m1), (s1*square)*m1); in product()
73 VERIFY_IS_APPROX(s1*(square*m1), square*(m1*s1)); in product()
92 res = square; in product()
94 VERIFY_IS_APPROX(res, square + m1 * m2.transpose()); in product()
97 VERIFY(areNotApprox(res,square + m2 * m1.transpose())); in product()
104 res = square; in product()
106 VERIFY_IS_APPROX(res, square - (m1 * m2.transpose())); in product()
[all …]
Ddontalign.cpp31 SquareMatrixType square = SquareMatrixType::Random(rows,rows); in dontalign() local
34 VERIFY_IS_APPROX(v, square * square.colPivHouseholderQr().solve(v)); in dontalign()
35 square = square.inverse().eval(); in dontalign()
36 a = square * a; in dontalign()
37 square = square*square; in dontalign()
38 v = square * v; in dontalign()
40 VERIFY(square.determinant() != Scalar(0)); in dontalign()
Dmiscmatrices.cpp30 square(v1.asDiagonal()); in miscMatrices() local
31 if(r==r2) VERIFY_IS_APPROX(square(r,r2), v1[r]); in miscMatrices()
32 else VERIFY_IS_MUCH_SMALLER_THAN(square(r,r2), static_cast<Scalar>(1)); in miscMatrices()
33 square = MatrixType::Zero(rows, rows); in miscMatrices()
34 square.diagonal() = VectorType::Ones(rows); in miscMatrices()
35 VERIFY_IS_APPROX(square, MatrixType::Identity(rows, rows)); in miscMatrices()
Dadjoint.cpp18 static void run(const Vec& v1, const Vec& v2, Vec& v3, const Mat& square, Scalar s1, Scalar s2) { in run()
23 VERIFY(test_isApproxWithRef(v1.dot(square * v2), (square.adjoint() * v1).dot(v2), 0)); in run()
29 static void run(const Vec& v1, const Vec& v2, Vec& v3, const Mat& square, Scalar s1, Scalar s2) { in run()
47 …r ? 0 : (std::max)((std::max)(v1.norm(),v2.norm()),(std::max)((square * v2).norm(),(square.adjoint… in run()
48 …VERIFY(internal::isMuchSmallerThan(abs(v1.dot(square * v2) - (square.adjoint() * v1).dot(v2)), ref… in run()
74 square = SquareMatrixType::Random(rows, rows); in adjoint() local
95 adjoint_specific<NumTraits<Scalar>::IsInteger>::run(v1, v2, v3, square, s1, s2); in adjoint()
Dinteger_types.cpp73 square = SquareMatrixType::Random(rows, rows); in integer_type_tests() local
131 VERIFY_IS_APPROX(square * (m1 + m2), square * m1 + square * m2); in integer_type_tests()
132 …VERIFY_IS_APPROX((m1 + m2).transpose() * square, m1.transpose() * square + m2.transpose() * square in integer_type_tests()
Dcwiseop.cpp40 VERIFY_IS_APPROX(m3.cwise().square(), m1.cwise().abs()); in cwiseops_real_only()
41 VERIFY_IS_APPROX(m1.cwise().square().cwise().sqrt(), m1.cwise().abs()); in cwiseops_real_only()
44 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square()); in cwiseops_real_only()
51 VERIFY_IS_APPROX(mones, m1.cwise().sin().cwise().square() + m1.cwise().cos().cwise().square()); in cwiseops_real_only()
122 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square()); in cwiseops()
/external/eigen/test/eigen2/
Dproduct.h47 square = RowSquareMatrixType::Random(rows, rows), in product() local
73 VERIFY_IS_APPROX(square*(m1 + m2), square*m1+square*m2); in product()
74 VERIFY_IS_APPROX(square*(m1 - m2), square*m1-square*m2); in product()
77 VERIFY_IS_APPROX(s1*(square*m1), (s1*square)*m1); in product()
78 VERIFY_IS_APPROX(s1*(square*m1), square*(m1*s1)); in product()
81 s1 += (square.lazy() * m1)(r,c); in product()
100 res = square; in product()
102 VERIFY_IS_APPROX(res, square + m1 * m2.transpose()); in product()
105 VERIFY(areNotApprox(res,square + m2 * m1.transpose())); in product()
Deigen2_miscmatrices.cpp31 square = v1.asDiagonal(); in miscMatrices() local
32 if(r==r2) VERIFY_IS_APPROX(square(r,r2), v1[r]); in miscMatrices()
33 else VERIFY_IS_MUCH_SMALLER_THAN(square(r,r2), static_cast<Scalar>(1)); in miscMatrices()
34 square = MatrixType::Zero(rows, rows); in miscMatrices()
35 square.diagonal() = VectorType::Ones(rows); in miscMatrices()
36 VERIFY_IS_APPROX(square, MatrixType::Identity(rows, rows)); in miscMatrices()
Deigen2_basicstuff.cpp28square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>::Random(rows… in basicStuff()
71 square.col(r) = square.row(r).eval(); in basicStuff()
74 rv = square.row(r); in basicStuff()
75 cv = square.col(r); in basicStuff()
Deigen2_cwiseop.cpp39square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>::Random(rows… in cwiseops()
80 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square()); in cwiseops()
101 VERIFY_IS_APPROX(m3.cwise().square(), m1.cwise().abs()); in cwiseops()
102 VERIFY_IS_APPROX(m1.cwise().square().cwise().sqrt(), m1.cwise().abs()); in cwiseops()
105 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square()); in cwiseops()
112 VERIFY_IS_APPROX(mones, m1.cwise().sin().cwise().square() + m1.cwise().cos().cwise().square()); in cwiseops()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECPoint.java248 ECFieldElement zInv2 = zInv.square(), zInv3 = zInv2.multiply(zInv); in normalize()
561 ECFieldElement X3 = gamma.square().subtract(X1).subtract(X2); in add()
597 ECFieldElement vSquared = v.square(); in add()
600 … ECFieldElement A = u.square().multiply(w).subtract(vCubed).subtract(two(vSquaredV2)); in add()
633 ECFieldElement C = dx.square(); in add()
637 X3 = dy.square().subtract(W1).subtract(W2); in add()
659 Z1Squared = Z1.square(); in add()
673 Z2Squared = Z2.square(); in add()
695 ECFieldElement HSquared = H.square(); in add()
699 X3 = R.square().add(G).subtract(two(V)); in add()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/animation/
DAnimatableColor.cpp39 double square(double x) in square() function
89 return sqrt(square(m_red - other.m_red) in distanceTo()
90 + square(m_green - other.m_green) in distanceTo()
91 + square(m_blue - other.m_blue) in distanceTo()
92 + square(m_alpha - other.m_alpha)); in distanceTo()
/external/chromium_org/ppapi/examples/2d/
Dpaint_manager_example.cc114 pp::Rect square = SquareForPoint(last_x_, last_y_); in OnPaint() local
116 square.x() - paint_bounds.x(), in OnPaint()
117 square.y() - paint_bounds.y(), in OnPaint()
118 square.width(), in OnPaint()
119 square.height(), in OnPaint()
/external/chromium_org/ppapi/examples/input/
Dpointer_event_input.cc132 pp::Rect square = SquareForPoint(last_x_, last_y_); in OnPaint() local
134 square.x() - paint_bounds.x(), in OnPaint()
135 square.y() - paint_bounds.y(), in OnPaint()
136 square.width(), in OnPaint()
137 square.height(), in OnPaint()
/external/libvpx/libvpx/vp9/encoder/x86/
Dvp9_variance_impl_mmx.asm112 pmaddwd mm0, mm0 ; square and accumulate
113 pmaddwd mm2, mm2 ; square and accumulate
136 pmaddwd mm0, mm0 ; square and accumulate
137 pmaddwd mm2, mm2 ; square and accumulate
159 pmaddwd mm0, mm0 ; square and accumulate
160 pmaddwd mm2, mm2 ; square and accumulate
182 pmaddwd mm0, mm0 ; square and accumulate
183 pmaddwd mm2, mm2 ; square and accumulate
205 pmaddwd mm0, mm0 ; square and accumulate
206 pmaddwd mm2, mm2 ; square and accumulate
[all …]
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/x86/
Dvp9_variance_impl_mmx.asm112 pmaddwd mm0, mm0 ; square and accumulate
113 pmaddwd mm2, mm2 ; square and accumulate
136 pmaddwd mm0, mm0 ; square and accumulate
137 pmaddwd mm2, mm2 ; square and accumulate
159 pmaddwd mm0, mm0 ; square and accumulate
160 pmaddwd mm2, mm2 ; square and accumulate
182 pmaddwd mm0, mm0 ; square and accumulate
183 pmaddwd mm2, mm2 ; square and accumulate
205 pmaddwd mm0, mm0 ; square and accumulate
206 pmaddwd mm2, mm2 ; square and accumulate
[all …]
/external/eigen/unsupported/Eigen/
DMatrixFunctions43 * - \ref matrixbase_sqrt "MatrixBase::sqrt()", for computing the matrix square root
84 \param[in] M a square matrix.
101 \param[in] M a square matrix.
192 square roots computed by MatrixBase::sqrt().
232 \param[in] M base of the matrix power, should be a square matrix.
294 \param[in] M argument of matrix function, should be a square matrix.
350 \param[in] M a square matrix.
368 \param[in] M a square matrix.
379 Compute the matrix square root.
385 \param[in] M invertible matrix whose square root is to be computed.
[all …]
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
Dp1.cpp100 constexpr int square(int x); // expected-note {{declared here}}
110 …: x(square(a)), y(square(a)) // expected-note {{undefined function 'square' cannot be used in a co… in pixel()
115 constexpr int square(int x) { in square() function
/external/chromium_org/v8/test/mjsunit/
Dkeyed-call-generic.js49 Number.prototype.square = function() { return this * this; } method in Number
50 Number.prototype.power4 = function() { return this.square().square(); }
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/x86/
Dvariance_impl_mmx.asm112 pmaddwd mm0, mm0 ; square and accumulate
113 pmaddwd mm2, mm2 ; square and accumulate
136 pmaddwd mm0, mm0 ; square and accumulate
137 pmaddwd mm2, mm2 ; square and accumulate
159 pmaddwd mm0, mm0 ; square and accumulate
160 pmaddwd mm2, mm2 ; square and accumulate
182 pmaddwd mm0, mm0 ; square and accumulate
183 pmaddwd mm2, mm2 ; square and accumulate
205 pmaddwd mm0, mm0 ; square and accumulate
206 pmaddwd mm2, mm2 ; square and accumulate
[all …]
/external/libvpx/libvpx/vp8/common/x86/
Dvariance_impl_mmx.asm112 pmaddwd mm0, mm0 ; square and accumulate
113 pmaddwd mm2, mm2 ; square and accumulate
136 pmaddwd mm0, mm0 ; square and accumulate
137 pmaddwd mm2, mm2 ; square and accumulate
159 pmaddwd mm0, mm0 ; square and accumulate
160 pmaddwd mm2, mm2 ; square and accumulate
182 pmaddwd mm0, mm0 ; square and accumulate
183 pmaddwd mm2, mm2 ; square and accumulate
205 pmaddwd mm0, mm0 ; square and accumulate
206 pmaddwd mm2, mm2 ; square and accumulate
[all …]
/external/eigen/doc/snippets/
DTopicAliasing_cwise.cpp14 arr = arr.square();
19 mat = (2 * mat - MatrixXf::Identity(2,2)).array().square();
/external/icu/icu4c/source/data/locales/
Dfil.txt944 square-foot{
945 one{"{0} square foot"}
946 other{"{0} square feet"}
948 square-kilometer{
949 one{"{0} square kilometer"}
950 other{"{0} square kilometer"}
952 square-meter{
953 one{"{0} square meter"}
954 other{"{0} square meter"}
956 square-mile{
[all …]
/external/eigen/bench/
Dvdw_new.cpp26 .cwise().square() in E_VDW()
27 .cwise().square() in E_VDW()
/external/llvm/test/Transforms/InstCombine/
D2010-11-23-Distributed.ll6 %square = mul nsw i32 %y, %y
7 %res = sub i32 %mul, %square

12345678910>>...12