Searched refs:coeffs (Results 1 - 25 of 92) sorted by relevance

1234

/external/chromium_org/third_party/skia/experimental/Intersection/
H A DCubicParameterization_TestUtility.cpp6 static void parameter_coeffs(const Cubic& cubic, double coeffs[coeff_count]) { argument
18 calc_ABCD(ax, ay, coeffs);
30 calc_ABCD(ax, bx, cx, dx, ay, by, cy, dy, coeffs);
34 coeffs[index] = (*calc_proc[procIndex])(ax, bx, cx, dx, ay, by, cy, dy);
39 double coeffs[coeff_count]; local
40 parameter_coeffs(cubic, coeffs);
41 double xxx = coeffs[xxx_coeff] * point.x * point.x * point.x;
42 double xxy = coeffs[xxy_coeff] * point.x * point.x * point.y;
43 double xyy = coeffs[xyy_coeff] * point.x * point.y * point.y;
44 double yyy = coeffs[yyy_coef
[all...]
H A DCubicParameterizationCode.cpp177 typedef std::vector<coeff> coeffs; typedef
178 typedef std::vector<coeffs> n_coeffs;
194 static void match(const char* str, size_t len, coeffs& co, const char pattern[]) {
277 coeffs& co = *it;
290 for (coeffs::iterator ct = co.begin(); ct < co.end(); ++ct) {
/external/skia/experimental/Intersection/
H A DCubicParameterization_TestUtility.cpp6 static void parameter_coeffs(const Cubic& cubic, double coeffs[coeff_count]) { argument
18 calc_ABCD(ax, ay, coeffs);
30 calc_ABCD(ax, bx, cx, dx, ay, by, cy, dy, coeffs);
34 coeffs[index] = (*calc_proc[procIndex])(ax, bx, cx, dx, ay, by, cy, dy);
39 double coeffs[coeff_count]; local
40 parameter_coeffs(cubic, coeffs);
41 double xxx = coeffs[xxx_coeff] * point.x * point.x * point.x;
42 double xxy = coeffs[xxy_coeff] * point.x * point.x * point.y;
43 double xyy = coeffs[xyy_coeff] * point.x * point.y * point.y;
44 double yyy = coeffs[yyy_coef
[all...]
H A DCubicParameterizationCode.cpp177 typedef std::vector<coeff> coeffs; typedef
178 typedef std::vector<coeffs> n_coeffs;
194 static void match(const char* str, size_t len, coeffs& co, const char pattern[]) {
277 coeffs& co = *it;
290 for (coeffs::iterator ct = co.begin(); ct < co.end(); ++ct) {
/external/eigen/Eigen/src/Geometry/
H A DHyperplane.h57 : m_coeffs(other.coeffs())
166 inline const Coefficients& coeffs() const { return m_coeffs; } function in class:Eigen::Hyperplane
171 inline Coefficients& coeffs() { return m_coeffs; } function in class:Eigen::Hyperplane
183 Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coeff(0);
188 if(abs(coeffs().coeff(1))>abs(coeffs().coeff(0)))
189 return VectorType(coeffs()
[all...]
H A DQuaternion.h60 inline Scalar x() const { return this->derived().coeffs().coeff(0); }
62 inline Scalar y() const { return this->derived().coeffs().coeff(1); }
64 inline Scalar z() const { return this->derived().coeffs().coeff(2); }
66 inline Scalar w() const { return this->derived().coeffs().coeff(3); }
69 inline Scalar& x() { return this->derived().coeffs().coeffRef(0); }
71 inline Scalar& y() { return this->derived().coeffs().coeffRef(1); }
73 inline Scalar& z() { return this->derived().coeffs().coeffRef(2); }
75 inline Scalar& w() { return this->derived().coeffs().coeffRef(3); }
78 inline const VectorBlock<const Coefficients,3> vec() const { return coeffs().template head<3>(); }
81 inline VectorBlock<Coefficients,3> vec() { return coeffs()
84 inline const typename internal::traits<Derived>::Coefficients& coeffs() const { return derived().coeffs(); } function in class:Eigen::QuaternionBase
87 inline typename internal::traits<Derived>::Coefficients& coeffs() { return derived().coeffs(); } function in class:Eigen::QuaternionBase
276 inline Coefficients& coeffs() { return m_coeffs;} function in class:Eigen::Quaternion
277 inline const Coefficients& coeffs() const { return m_coeffs;} function in class:Eigen::Quaternion
353 Map(const Scalar* coeffs) argument
355 inline const Coefficients& coeffs() const { return m_coeffs;} function in class:Eigen::Map
390 Map(Scalar* coeffs) argument
392 inline Coefficients& coeffs() { return m_coeffs; } function in class:Eigen::Map
393 inline const Coefficients& coeffs() const { return m_coeffs; } function in class:Eigen::Map
[all...]
/external/eigen/Eigen/src/Eigen2Support/Geometry/
H A DHyperplane.h155 inline const Coefficients& coeffs() const { return m_coeffs; } function in class:Eigen::Hyperplane
160 inline Coefficients& coeffs() { return m_coeffs; } function in class:Eigen::Hyperplane
171 Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coeff(0);
176 if(ei_abs(coeffs().coeff(1))>ei_abs(coeffs().coeff(0)))
177 return VectorType(coeffs().coeff(1), -coeffs()
[all...]
H A DScaling.h72 explicit inline Scaling(const VectorType& coeffs) : m_coeffs(coeffs) {} argument
74 const VectorType& coeffs() const { return m_coeffs; } function in class:Eigen::Scaling
75 VectorType& coeffs() { return m_coeffs; } function in class:Eigen::Scaling
79 { return Scaling(coeffs().cwise() * other.coeffs()); }
90 { return coeffs().asDiagonal() * other; }
95 { return other * s.coeffs().asDiagonal(); }
103 { return coeffs().asDiagonal() * other; }
107 { return Scaling(coeffs()
[all...]
/external/eigen/test/eigen2/
H A Deigen2_regression.cpp23 hyperplane->coeffs().resize(size + 1);
27 hyperplane->coeffs().coeffRef(j) = ei_random<Scalar>();
28 } while(ei_abs(hyperplane->coeffs().coeff(j)) < 0.5);
39 Scalar x = - (hyperplane->coeffs().start(size).cwise()*cur_point).sum();
40 cur_point *= hyperplane->coeffs().coeff(size) / x;
74 result.coeffs() *= original.coeffs().coeff(size)/result.coeffs().coeff(size);
75 typename VectorType::Scalar error = (result.coeffs() - original.coeffs())
[all...]
/external/eigen/bench/
H A Dquat_slerp.cpp13 return Q((a.coeffs() * (1.0-t) + b.coeffs() * t).normalized());
41 return Q(scale0 * a.coeffs() + scale1 * b.coeffs());
72 return Q(scale0 * a.coeffs() + scale1 * b.coeffs());
92 theta = /*M_PI -*/ Scalar(2)*std::asin( (a.coeffs()+b.coeffs()).norm()/2 );
94 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs())
[all...]
/external/eigen/Eigen/src/Eigen2Support/
H A DLeastSquares.h44 Vector3d coeffs; // will store the coefficients a, b, c
48 &coeffs,
53 * Now the vector \a coeffs is approximately
97 result->coeffRef(i) = - h.coeffs()[i] / h.coeffs()[funcOfOthers];
99 result->coeffRef(i) = - h.coeffs()[i+1] / h.coeffs()[funcOfOthers];
140 ei_assert(size+1 == result->coeffs().size());
/external/eigen/test/
H A Dgeo_quaternion.cpp73 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs());
74 q1.coeffs().setRandom();
75 VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs());
88 if((q1.coeffs()-q2.coeffs()).norm() > 10*largeEps)
166 q1.coeffs() = Vector4::Random().normalized();
167 q2.coeffs() = -q1.coeffs();
[all...]
H A Dgeo_hyperplane.cpp111 CoeffsType converted_coeffs = HLine(pl).coeffs();
112 converted_coeffs *= (line_u.coeffs()[0])/(converted_coeffs[0]);
113 VERIFY(line_u.coeffs().isApprox(converted_coeffs));
131 p1->coeffs().setRandom();
135 VERIFY_IS_APPROX(p1->coeffs(), p2->coeffs());
136 VERIFY_IS_APPROX(p1->coeffs(), p3->coeffs());
/external/chromium_org/third_party/skia/tools/
H A Dgenerate_fir_coeff.py55 coeffs = []
71 coeffs.append(coverage * target_sum)
81 # The coeffs add up to too much. Subtract 1 from the ones which were rounded up the most.
85 # The coeffs add up to too little. Add 1 to the ones which were rounded down the most.
91 for coeff, coeff_rounded in zip(coeffs, coeffs_rounded)]
111 print "Adding %d to index %d to force round %f." % (delta, coeff_pkg[i].index, coeffs[coeff_pkg[i].index])
118 print sum(coeffs), hex(sum(coeffs_rounded))
/external/skia/tools/
H A Dgenerate_fir_coeff.py55 coeffs = []
71 coeffs.append(coverage * target_sum)
81 # The coeffs add up to too much. Subtract 1 from the ones which were rounded up the most.
85 # The coeffs add up to too little. Add 1 to the ones which were rounded down the most.
91 for coeff, coeff_rounded in zip(coeffs, coeffs_rounded)]
111 print "Adding %d to index %d to force round %f." % (delta, coeff_pkg[i].index, coeffs[coeff_pkg[i].index])
118 print sum(coeffs), hex(sum(coeffs_rounded))
/external/eigen/Eigen/src/Core/
H A DBandMatrix.h60 inline const CoefficientsType& coeffs() const { return derived().coeffs(); } function in class:Eigen::internal::BandMatrixBase
63 inline CoefficientsType& coeffs() { return derived().coeffs(); } function in class:Eigen::internal::BandMatrixBase
72 Index len = coeffs().rows();
76 len = (std::min)(rows(),std::max<Index>(0,coeffs().rows() - (supers()-i)));
79 len = std::max<Index>(0,coeffs().rows() - (i + 1 - rows() + subs()));
80 return Block<CoefficientsType,Dynamic,1>(coeffs(), start, i, len, 1);
85 { return Block<CoefficientsType,1,SizeAtCompileTime>(coeffs(),supers(),0,1,(std::min)(rows(),cols())); }
89 { return Block<const CoefficientsType,1,SizeAtCompileTime>(coeffs(),super
225 inline const CoefficientsType& coeffs() const { return m_coeffs; } function in class:Eigen::internal::BandMatrix
226 inline CoefficientsType& coeffs() { return m_coeffs; } function in class:Eigen::internal::BandMatrix
269 BandMatrixWrapper(const CoefficientsType& coeffs, Index rows=_Rows, Index cols=_Cols, Index supers=_Supers, Index subs=_Subs) argument
289 inline const CoefficientsType& coeffs() const { return m_coeffs; } function in class:Eigen::internal::BandMatrixWrapper
[all...]
/external/chromium_org/third_party/skia/src/opts/
H A DSkBitmapProcState_arm_neon.cpp125 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local
126 coeffs = vld1_s16(filterValues);
127 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask0));
128 coeff1 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask1));
129 coeff2 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask2));
130 coeff3 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask3));
164 uint16x4_t coeffs; local
166 coeffs = vld1_u16(reinterpret_cast<const uint16_t*>(filterValues));
167 coeffs &= vld1_u16(&mask[r][0]);
168 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_u16(coeffs), coeff_mask
415 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local
452 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local
[all...]
/external/skia/src/opts/
H A DSkBitmapProcState_arm_neon.cpp125 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local
126 coeffs = vld1_s16(filterValues);
127 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask0));
128 coeff1 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask1));
129 coeff2 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask2));
130 coeff3 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask3));
164 uint16x4_t coeffs; local
166 coeffs = vld1_u16(reinterpret_cast<const uint16_t*>(filterValues));
167 coeffs &= vld1_u16(&mask[r][0]);
168 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_u16(coeffs), coeff_mask
415 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local
452 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; local
[all...]
/external/chromium_org/third_party/libwebp/enc/
H A Dcost.h30 const int16_t* coeffs; member in struct:__anon13271
41 typedef void (*VP8SetResidualCoeffsFunc)(const int16_t* const coeffs,
H A Dcost.c506 const int v = abs(res->coeffs[n]);
514 const int v = abs(res->coeffs[n]);
561 static void SetResidualCoeffs(const int16_t* const coeffs, argument
565 assert(res->first == 0 || coeffs[0] == 0);
567 if (coeffs[n]) {
572 res->coeffs = coeffs;
579 extern void VP8SetResidualCoeffsSSE2(const int16_t* const coeffs,
693 while ((v = res->coeffs[n++]) == 0) {
/external/webp/src/enc/
H A Dcost.h30 const int16_t* coeffs; member in struct:__anon33368
41 typedef void (*VP8SetResidualCoeffsFunc)(const int16_t* const coeffs,
H A Dcost.c506 const int v = abs(res->coeffs[n]);
514 const int v = abs(res->coeffs[n]);
561 static void SetResidualCoeffs(const int16_t* const coeffs, argument
565 assert(res->first == 0 || coeffs[0] == 0);
567 if (coeffs[n]) {
572 res->coeffs = coeffs;
579 extern void VP8SetResidualCoeffsSSE2(const int16_t* const coeffs,
693 while ((v = res->coeffs[n++]) == 0) {
/external/eigen/Eigen/src/Geometry/arch/
H A DGeometry_SSE.h25 __m128 a = _a.coeffs().template packet<Aligned>(0);
26 __m128 b = _b.coeffs().template packet<Aligned>(0);
68 const double* a = _a.coeffs().data();
69 Packet2d b_xy = _b.coeffs().template packet<Aligned>(0);
70 Packet2d b_zw = _b.coeffs().template packet<Aligned>(2);
/external/eigen/doc/special_examples/
H A DTutorial_sparse_example_details.cpp8 void insertCoefficient(int id, int i, int j, double w, std::vector<T>& coeffs, argument
16 else coeffs.push_back(T(id,id1,w)); // unknown coefficient
/external/opencv/cvaux/src/
H A Dcvepilines.cpp100 CvStereoLineCoeff* coeffs,
116 partX = coeffs->Xcoef + coeffs->XcoefA *alpha +
117 coeffs->XcoefB*betta + coeffs->XcoefAB*alphabetta;
119 partY = coeffs->Ycoef + coeffs->YcoefA *alpha +
120 coeffs->YcoefB*betta + coeffs->YcoefAB*alphabetta;
122 partZ = coeffs
99 icvCompute3DPoint( double alpha,double betta, CvStereoLineCoeff* coeffs, CvPoint3D64d* point) argument
339 icvComCoeffForLine( CvPoint2D64d point1, CvPoint2D64d point2, CvPoint2D64d point3, CvPoint2D64d point4, CvMatr64d camMatr1, CvMatr64d rotMatr1, CvMatr64d transVect1, CvMatr64d camMatr2, CvMatr64d rotMatr2, CvMatr64d transVect2, CvStereoLineCoeff* coeffs, int* needSwapCamera) argument
598 icvComputeStereoLineCoeffs( CvPoint3D64d pointA, CvPoint3D64d pointB, CvPoint3D64d pointCam1, double gamma, CvStereoLineCoeff* coeffs) argument
2365 icvComputePerspectiveCoeffs(const CvPoint2D32f srcQuad[4],const CvPoint2D32f dstQuad[4],double coeffs[3][3]) argument
[all...]

Completed in 5200 milliseconds

1234