Searched defs:square (Results 1 - 25 of 28) sorted by relevance

12

/external/eigen/Eigen/src/plugins/
H A DArrayCwiseUnaryOps.h21 * \sa abs(), square()
55 /** \returns an expression of the coefficient-wise square root of *this.
60 * \sa pow(), square()
163 /** \returns an expression of the coefficient-wise square of *this.
171 square() const function
181 * \sa square(), pow()
/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 Dadjoint.cpp31 square = SquareMatrixType::Random(rows, rows); local
70 ref = NumTraits<Scalar>::IsInteger ? 0 : (std::max)((std::max)(v1.norm(),v2.norm()),(std::max)((square * v2).norm(),(square.adjoint() * v1).norm()));
71 VERIFY(test_isApproxWithRef(v1.dot(square * v2), (square.adjoint() * v1).dot(v2), ref));
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 Dbasicstuff.cpp30 square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>::Random(rows, rows); local
74 square.col(r) = square.row(r).eval();
77 rv = square.row(r);
78 cv = square.col(r);
H A Dproduct.h45 square = RowSquareMatrixType::Random(rows, rows), local
69 VERIFY_IS_APPROX(square*(m1 + m2), square*m1+square*m2);
70 VERIFY_IS_APPROX(square*(m1 - m2), square*m1-square*m2);
73 VERIFY_IS_APPROX(s1*(square*m1), (s1*square)*m1);
74 VERIFY_IS_APPROX(s1*(square*m
[all...]
H A Dproduct_extra.cpp30 square = MatrixType::Random(rows, rows), local
43 VERIFY_IS_APPROX(m3.noalias() = m1.adjoint() * square.adjoint(), m1.adjoint().eval() * square.adjoint().eval());
/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 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_adjoint.cpp34 square = SquareMatrixType::Random(rows, rows); local
64 VERIFY(ei_isApprox(v1.eigen2_dot(square * v2), (square.adjoint() * v1).eigen2_dot(v2), largerEps));
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_nomalloc.cpp39 square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> local
H A Deigen2_triangular.cpp33 square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> local
H A Deigen2_submatrices.cpp58 square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> local
74 VERIFY_IS_APPROX(square.row(r1).eigen2_dot(m1.col(c1)), (square.lazy() * m1.conjugate())(r1,c1));
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...]
/external/webkit/Source/WebCore/platform/graphics/cairo/
H A DDrawErrorUnderline.h38 // \ \/ C \/ / \ \/ C \ | height = heightSquares * square
45 // unitWidth = (heightSquares - 1) * square
55 double square = height / heightSquares; local
56 double halfSquare = 0.5 * square;
58 double unitWidth = (heightSquares - 1.0) * square;
80 cairo_line_to(cr, right, top + square); // C
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DIntArray.java416 public IntArray square(int m) method in class:IntArray
H A DECFieldElement.java18 public abstract ECFieldElement square(); method in class:ECFieldElement
95 public ECFieldElement square() method in class:ECFieldElement.Fp
125 return z.square().equals(this) ? z : null;
606 // public ECFieldElement square()
1031 public ECFieldElement square() method in class:ECFieldElement.F2m
1033 IntArray squared = x.square(m);
/external/eigen/Eigen/src/Eigen2Support/
H A DCwiseOperators.h135 /** \deprecated ArrayBase::square() */
138 Cwise<ExpressionType>::square() const function in class:Eigen::Cwise
/external/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.cpp99 constexpr int square(int x); // expected-note {{declared here}}
109 : x(square(a)), y(square(a)) // expected-note {{undefined function 'square' cannot be used in a constant expression}}
114 constexpr int square(int x) { function
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dmetafunctions.cpp79 struct square { struct in namespace:Math
83 int check1[is_same<square<1, 2, -3>::type,
/external/opencv/cv/src/
H A Dcvcamshift.cpp175 double theta = 0, square; local
232 square = sqrt( 4 * b * b + (a - c) * (a - c) );
235 theta = atan2( 2 * b, a - c + square );
/external/bison/lib/
H A Dhash.c447 size_t square = divisor * divisor; local
449 while (square < candidate && (candidate % divisor))
452 square += 4 * divisor;
/external/webkit/Source/WebCore/platform/graphics/skia/
H A DGraphicsContextSkia.cpp76 inline float square(float n) function in namespace:WebCore::__anon15907
579 // probably worth the speed up of no square root, which also won't be exact.
845 // shadow for a square box.

Completed in 298 milliseconds

12