Searched refs:square (Results 1 - 25 of 88) sorted by relevance

1234

/external/eigen/doc/snippets/
H A DCwise_square.cpp2 cout << v.square() << endl;
H A DMatrixBase_array_const.cpp4 cout << "sum of the squares: " << v.array().square().sum() << endl;
H A DTopicAliasing_cwise.cpp14 arr = arr.square();
19 mat = (2 * mat - MatrixXf::Identity(2,2)).array().square();
/external/eigen/test/
H A Ddontalign.cpp31 SquareMatrixType square = SquareMatrixType::Random(rows,rows); local
34 VERIFY_IS_APPROX(v, square * square.colPivHouseholderQr().solve(v));
35 square = square.inverse().eval();
36 a = square * a;
37 square = square*square;
38 v = square *
[all...]
H A Dproduct.h44 square = RowSquareMatrixType::Random(rows, rows), local
68 VERIFY_IS_APPROX(square*(m1 + m2), square*m1+square*m2);
69 VERIFY_IS_APPROX(square*(m1 - m2), square*m1-square*m2);
72 VERIFY_IS_APPROX(s1*(square*m1), (s1*square)*m1);
73 VERIFY_IS_APPROX(s1*(square*m
[all...]
H A Dmiscmatrices.cpp30 square(v1.asDiagonal());
31 if(r==r2) VERIFY_IS_APPROX(square(r,r2), v1[r]);
32 else VERIFY_IS_MUCH_SMALLER_THAN(square(r,r2), static_cast<Scalar>(1));
33 square = MatrixType::Zero(rows, rows);
34 square.diagonal() = VectorType::Ones(rows);
35 VERIFY_IS_APPROX(square, MatrixType::Identity(rows, rows));
H A Dadjoint.cpp18 static void run(const Vec& v1, const Vec& v2, Vec& v3, const Mat& square, Scalar s1, Scalar s2) { argument
23 VERIFY(test_isApproxWithRef(v1.dot(square * v2), (square.adjoint() * v1).dot(v2), 0));
29 static void run(const Vec& v1, const Vec& v2, Vec& v3, const Mat& square, Scalar s1, Scalar s2) { argument
47 ref = NumTraits<Scalar>::IsInteger ? 0 : (std::max)((std::max)(v1.norm(),v2.norm()),(std::max)((square * v2).norm(),(square.adjoint() * v1).norm()));
48 VERIFY(internal::isMuchSmallerThan(abs(v1.dot(square * v2) - (square.adjoint() * v1).dot(v2)), ref, test_precision<Scalar>()));
74 square = SquareMatrixType::Random(rows, rows); local
95 adjoint_specific<NumTraits<Scalar>::IsInteger>::run(v1, v2, v3, square, s
[all...]
H A Dinteger_types.cpp73 square = SquareMatrixType::Random(rows, rows); local
131 VERIFY_IS_APPROX(square * (m1 + m2), square * m1 + square * m2);
132 VERIFY_IS_APPROX((m1 + m2).transpose() * square, m1.transpose() * square + m2.transpose() * square);
H A Dcwiseop.cpp40 VERIFY_IS_APPROX(m3.cwise().square(), m1.cwise().abs());
41 VERIFY_IS_APPROX(m1.cwise().square().cwise().sqrt(), m1.cwise().abs());
44 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square());
51 VERIFY_IS_APPROX(mones, m1.cwise().sin().cwise().square() + m1.cwise().cos().cwise().square());
122 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square());
/external/eigen/test/eigen2/
H A Deigen2_miscmatrices.cpp31 square = v1.asDiagonal(); local
32 if(r==r2) VERIFY_IS_APPROX(square(r,r2), v1[r]);
33 else VERIFY_IS_MUCH_SMALLER_THAN(square(r,r2), static_cast<Scalar>(1));
34 square = MatrixType::Zero(rows, rows);
35 square.diagonal() = VectorType::Ones(rows);
36 VERIFY_IS_APPROX(square, MatrixType::Identity(rows, rows));
H A Dproduct.h47 square = RowSquareMatrixType::Random(rows, rows), local
73 VERIFY_IS_APPROX(square*(m1 + m2), square*m1+square*m2);
74 VERIFY_IS_APPROX(square*(m1 - m2), square*m1-square*m2);
77 VERIFY_IS_APPROX(s1*(square*m1), (s1*square)*m1);
78 VERIFY_IS_APPROX(s1*(square*m
[all...]
H A Deigen2_basicstuff.cpp28 square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>::Random(rows, rows); local
71 square.col(r) = square.row(r).eval();
74 rv = square.row(r);
75 cv = square.col(r);
H A Deigen2_cwiseop.cpp39 square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>::Random(rows, rows); local
80 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square());
101 VERIFY_IS_APPROX(m3.cwise().square(), m1.cwise().abs());
102 VERIFY_IS_APPROX(m1.cwise().square().cwise().sqrt(), m1.cwise().abs());
105 VERIFY_IS_APPROX(m1.cwise().pow(2), m1.cwise().square());
112 VERIFY_IS_APPROX(mones, m1.cwise().sin().cwise().square() + m1.cwise().cos().cwise().square());
H A Deigen2_adjoint.cpp34 square = SquareMatrixType::Random(rows, rows); local
64 VERIFY(ei_isApprox(v1.eigen2_dot(square * v2), (square.adjoint() * v1).eigen2_dot(v2), largerEps));
/external/chromium_org/v8/test/mjsunit/harmony/
H A Darrow-functions.js34 var square = x => x * x; variable
35 assertEquals(9, square(3));
/external/eigen/bench/
H A Dvdw_new.cpp26 .cwise().square()
27 .cwise().square()
H A DbenchmarkXcwise.cpp31 m = VECTYPE::Ones(VECSIZE) + 0.00005 * (m.cwise().square() + m/4);
/external/chromium_org/third_party/WebKit/Source/core/animation/animatable/
H A DAnimatableColor.cpp39 double square(double x) function in namespace:__anon10997
89 return sqrt(square(m_red - other.m_red)
90 + square(m_green - other.m_green)
91 + square(m_blue - other.m_blue)
92 + square(m_alpha - other.m_alpha));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DECPoint.java248 ECFieldElement zInv2 = zInv.square(), zInv3 = zInv2.multiply(zInv);
561 ECFieldElement X3 = gamma.square().subtract(X1).subtract(X2);
597 ECFieldElement vSquared = v.square();
600 ECFieldElement A = u.square().multiply(w).subtract(vCubed).subtract(two(vSquaredV2));
633 ECFieldElement C = dx.square();
637 X3 = dy.square().subtract(W1).subtract(W2);
659 Z1Squared = Z1.square();
673 Z2Squared = Z2.square();
695 ECFieldElement HSquared = H.square();
699 X3 = R.square()
[all...]
/external/chromium_org/v8/test/mjsunit/
H A Dkeyed-call-generic.js49 Number.prototype.square = function() { return this * this; }
50 Number.prototype.power4 = function() { return this.square().square(); }
69 testOne(2, 'square', 4);
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A 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 constant expression}}
115 constexpr int square(int x) { function
/external/chromium_org/ppapi/examples/2d/
H A Dpaint_manager_example.cc17 // Number of pixels to each side of the center of the square that we draw.
20 // We identify our square by the center point. This computes the rect for the
21 // square given that point.
55 // Update the square on a mouse down.
64 // Update the square on a drag.
112 // Paint the square black. Because we're lazy, we do this outside of the
114 pp::Rect square = SquareForPoint(last_x_, last_y_); local
116 square.x() - paint_bounds.x(),
117 square.y() - paint_bounds.y(),
118 square
[all...]
/external/chromium_org/ppapi/examples/input/
H A Dpointer_event_input.cc17 // Number of pixels to each side of the center of the square that we draw.
20 // We identify our square by the center point. This computes the rect for the
21 // square given that point.
55 // Update the square on a mouse down.
64 // Update the square on a drag.
74 // Update the square on a touch down.
130 // Paint the square black. Because we're lazy, we do this outside of the
132 pp::Rect square = SquareForPoint(last_x_, last_y_); local
134 square.x() - paint_bounds.x(),
135 square
[all...]
/external/libvpx/libvpx/vp9/encoder/x86/
H A 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 an
[all...]
/external/chromium_org/ppapi/tests/
H A Dtest_graphics_2d.h55 // Validates that the given image is a single color with a square of another
59 const pp::Rect& square, uint32_t square_color) const;
61 // Validates that the given device context is a single color with a square of
64 const pp::Rect& square, uint32_t square_color) const;

Completed in 2417 milliseconds

1234