Home
last modified time | relevance | path

Searched refs:coeffs (Results 1 – 25 of 69) sorted by relevance

123

/external/eigen/Eigen/src/Eigen2Support/Geometry/
DHyperplane.h155 inline const Coefficients& coeffs() const { return m_coeffs; } in coeffs() function
160 inline Coefficients& coeffs() { return m_coeffs; } in coeffs() function
171 …Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coef… in intersection()
176 if(ei_abs(coeffs().coeff(1))>ei_abs(coeffs().coeff(0))) in intersection()
177 … return VectorType(coeffs().coeff(1), -coeffs().coeff(2)/coeffs().coeff(1)-coeffs().coeff(0)); in intersection()
179 … return VectorType(-coeffs().coeff(2)/coeffs().coeff(0)-coeffs().coeff(1), coeffs().coeff(0)); in intersection()
184 …return VectorType(invdet*(coeffs().coeff(1)*other.coeffs().coeff(2)-other.coeffs().coeff(1)*coeffs in intersection()
185 … invdet*(other.coeffs().coeff(0)*coeffs().coeff(2)-coeffs().coeff(0)*other.coeffs().coeff(2))); in intersection()
240 { m_coeffs = other.coeffs().template cast<Scalar>(); } in Hyperplane()
DScaling.h72 explicit inline Scaling(const VectorType& coeffs) : m_coeffs(coeffs) {} in Scaling() argument
74 const VectorType& coeffs() const { return m_coeffs; } in coeffs() function
75 VectorType& coeffs() { return m_coeffs; } in coeffs() function
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().cwise().inverse()); } in inverse()
127 { m_coeffs = other.coeffs().template cast<Scalar>(); } in Scaling()
152 res.linear().diagonal() = coeffs();
DQuaternion.h93 inline const Coefficients& coeffs() const { return m_coeffs; }
96 inline Coefficients& coeffs() { return m_coeffs; }
193 { m_coeffs = other.coeffs().template cast<Scalar>(); }
380 return Quaternion(conjugate().coeffs() / n2);
442 return Quaternion<Scalar>(scale0 * coeffs() + scale1 * other.coeffs());
475 q.coeffs().coeffRef(i) = Scalar(0.5) * t;
478 q.coeffs().coeffRef(j) = (mat.coeff(j,i)+mat.coeff(i,j))*t;
479 q.coeffs().coeffRef(k) = (mat.coeff(k,i)+mat.coeff(i,k))*t;
491 q.coeffs() = vec;
/external/eigen/Eigen/src/Geometry/
DHyperplane.h57 : m_coeffs(other.coeffs()) in Hyperplane()
176 inline const Coefficients& coeffs() const { return m_coeffs; } in coeffs() function
181 inline Coefficients& coeffs() { return m_coeffs; } in coeffs() function
193 …Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coef… in intersection()
198 if(abs(coeffs().coeff(1))>abs(coeffs().coeff(0))) in intersection()
199 … return VectorType(coeffs().coeff(1), -coeffs().coeff(2)/coeffs().coeff(1)-coeffs().coeff(0)); in intersection()
201 … return VectorType(-coeffs().coeff(2)/coeffs().coeff(0)-coeffs().coeff(1), coeffs().coeff(0)); in intersection()
206 …return VectorType(invdet*(coeffs().coeff(1)*other.coeffs().coeff(2)-other.coeffs().coeff(1)*coeffs in intersection()
207 … invdet*(other.coeffs().coeff(0)*coeffs().coeff(2)-coeffs().coeff(0)*other.coeffs().coeff(2))); in intersection()
263 { m_coeffs = other.coeffs().template cast<Scalar>(); } in Hyperplane()
DQuaternion.h60 inline Scalar x() const { return this->derived().coeffs().coeff(0); } in x()
62 inline Scalar y() const { return this->derived().coeffs().coeff(1); } in y()
64 inline Scalar z() const { return this->derived().coeffs().coeff(2); } in z()
66 inline Scalar w() const { return this->derived().coeffs().coeff(3); } in w()
69 inline Scalar& x() { return this->derived().coeffs().coeffRef(0); } in x()
71 inline Scalar& y() { return this->derived().coeffs().coeffRef(1); } in y()
73 inline Scalar& z() { return this->derived().coeffs().coeffRef(2); } in z()
75 inline Scalar& w() { return this->derived().coeffs().coeffRef(3); } in w()
78 inline const VectorBlock<const Coefficients,3> vec() const { return coeffs().template head<3>(); } in vec()
81 inline VectorBlock<Coefficients,3> vec() { return coeffs().template head<3>(); } in vec()
[all …]
/external/eigen/bench/
Dquat_slerp.cpp13 return Q((a.coeffs() * (1.0-t) + b.coeffs() * t).normalized()); in nlerp()
41 return Q(scale0 * a.coeffs() + scale1 * b.coeffs()); in slerp_legacy()
72 return Q(scale0 * a.coeffs() + scale1 * b.coeffs()); in slerp_legacy_nlerp()
92 theta = /*M_PI -*/ Scalar(2)*std::asin( (a.coeffs()+b.coeffs()).norm()/2 ); in slerp_rw()
94 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 ); in slerp_rw()
105 return Quaternion<Scalar>(scale0 * a.coeffs() + scale1 * b.coeffs()); in slerp_rw()
120 theta = /*M_PI -*/ Scalar(2)*std::asin( (-a.coeffs()-b.coeffs()).norm()/2 ); in slerp_gael()
122 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 ); in slerp_gael()
141 return Quaternion<Scalar>(scale0 * a.coeffs() + scale1 * b.coeffs()); in slerp_gael()
170 a.coeffs().setRandom(); in main()
[all …]
/external/eigen/test/eigen2/
Deigen2_regression.cpp23 hyperplane->coeffs().resize(size + 1); in makeNoisyCohyperplanarPoints()
27 hyperplane->coeffs().coeffRef(j) = ei_random<Scalar>(); in makeNoisyCohyperplanarPoints()
28 } while(ei_abs(hyperplane->coeffs().coeff(j)) < 0.5); in makeNoisyCohyperplanarPoints()
39 Scalar x = - (hyperplane->coeffs().start(size).cwise()*cur_point).sum(); in makeNoisyCohyperplanarPoints()
40 cur_point *= hyperplane->coeffs().coeff(size) / x; in makeNoisyCohyperplanarPoints()
74 result.coeffs() *= original.coeffs().coeff(size)/result.coeffs().coeff(size); in check_fitHyperplane()
75 …typename VectorType::Scalar error = (result.coeffs() - original.coeffs()).norm() / original.coeffs in check_fitHyperplane()
92 coeffs2f[0] = -coeffs3f.coeffs()[0]/coeffs3f.coeffs()[1]; in test_eigen2_regression()
93 coeffs2f[1] = -coeffs3f.coeffs()[2]/coeffs3f.coeffs()[1]; in test_eigen2_regression()
Deigen2_hyperplane.cpp110 CoeffsType converted_coeffs(HLine(pl).coeffs()); in lines()
111 converted_coeffs *= line_u.coeffs()(0)/converted_coeffs(0); in lines()
112 VERIFY(line_u.coeffs().isApprox(converted_coeffs)); in lines()
Deigen2_geometry_with_eigen2_prefix.cpp61 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); in geometry()
62 q1.coeffs().setRandom(); in geometry()
63 VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs()); in geometry()
87 if((q1.coeffs()-q2.coeffs()).norm() > 10*largeEps) in geometry()
Deigen2_geometry.cpp59 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); in geometry()
60 q1.coeffs().setRandom(); in geometry()
61 VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs()); in geometry()
85 if((q1.coeffs()-q2.coeffs()).norm() > 10*largeEps) in geometry()
/external/libvpx/libvpx/vpx_dsp/x86/
Dhighbd_quantize_intrin_sse2.c54 __m128i coeffs, cmp1, cmp2; in vpx_highbd_quantize_b_sse2() local
56 coeffs = _mm_load_si128((const __m128i *)(coeff_ptr + i * 4)); in vpx_highbd_quantize_b_sse2()
57 cmp1 = _mm_cmplt_epi32(coeffs, zbins[i != 0]); in vpx_highbd_quantize_b_sse2()
58 cmp2 = _mm_cmpgt_epi32(coeffs, nzbins[i != 0]); in vpx_highbd_quantize_b_sse2()
69 __m128i coeffs, coeffs_sign, tmp1, tmp2; in vpx_highbd_quantize_b_sse2() local
74 coeffs = _mm_load_si128((const __m128i *)(coeff_ptr + i * 4)); in vpx_highbd_quantize_b_sse2()
75 coeffs_sign = _mm_srai_epi32(coeffs, 31); in vpx_highbd_quantize_b_sse2()
76 coeffs = _mm_sub_epi32( in vpx_highbd_quantize_b_sse2()
77 _mm_xor_si128(coeffs, coeffs_sign), coeffs_sign); in vpx_highbd_quantize_b_sse2()
78 tmp1 = _mm_cmpgt_epi32(coeffs, zbins[i != 0]); in vpx_highbd_quantize_b_sse2()
[all …]
/external/eigen/test/
Dgeo_quaternion.cpp73 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); in quaternion()
74 q1.coeffs().setRandom(); in quaternion()
75 VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs()); in quaternion()
88 if((q1.coeffs()-q2.coeffs()).norm() > 10*largeEps) in quaternion()
166 q1.coeffs() = Vector4::Random().normalized(); in quaternion()
167 q2.coeffs() = -q1.coeffs(); in quaternion()
205 VERIFY_IS_APPROX(q1.coeffs(), q2.coeffs()); in mapQuaternion()
206 VERIFY_IS_APPROX(q1.coeffs(), q3.coeffs()); in mapQuaternion()
207 VERIFY_IS_APPROX(q4.coeffs(), q3.coeffs()); in mapQuaternion()
244 q1->coeffs().setRandom(); in quaternionAlignment()
[all …]
Dgeo_hyperplane.cpp111 CoeffsType converted_coeffs = HLine(pl).coeffs(); in lines()
112 converted_coeffs *= (line_u.coeffs()[0])/(converted_coeffs[0]); in lines()
113 VERIFY(line_u.coeffs().isApprox(converted_coeffs)); in lines()
157 p1->coeffs().setRandom(); in hyperplane_alignment()
161 VERIFY_IS_APPROX(p1->coeffs(), p2->coeffs()); in hyperplane_alignment()
162 VERIFY_IS_APPROX(p1->coeffs(), p3->coeffs()); in hyperplane_alignment()
/external/skia/src/opts/
DSkBitmapProcState_arm_neon.cpp137 int16x4_t coeffs, coeff0, coeff1, coeff2, coeff3; in convolveHorizontally_neon() local
138 coeffs = vld1_s16(filterValues); in convolveHorizontally_neon()
139 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask0)); in convolveHorizontally_neon()
140 coeff1 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask1)); in convolveHorizontally_neon()
141 coeff2 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask2)); in convolveHorizontally_neon()
142 coeff3 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_s16(coeffs), coeff_mask3)); in convolveHorizontally_neon()
176 uint16x4_t coeffs; in convolveHorizontally_neon() local
178 coeffs = vld1_u16(reinterpret_cast<const uint16_t*>(filterValues)); in convolveHorizontally_neon()
179 coeffs &= vld1_u16(&mask[r][0]); in convolveHorizontally_neon()
180 coeff0 = vreinterpret_s16_u8(vtbl1_u8(vreinterpret_u8_u16(coeffs), coeff_mask0)); in convolveHorizontally_neon()
[all …]
/external/eigen/Eigen/src/Core/
DBandMatrix.h60 inline const CoefficientsType& coeffs() const { return derived().coeffs(); } in coeffs() function
63 inline CoefficientsType& coeffs() { return derived().coeffs(); } in coeffs() function
72 Index len = coeffs().rows(); in col()
76 len = (std::min)(rows(),std::max<Index>(0,coeffs().rows() - (supers()-i))); in col()
79 len = std::max<Index>(0,coeffs().rows() - (i + 1 - rows() + subs())); in col()
80 return Block<CoefficientsType,Dynamic,1>(coeffs(), start, i, len, 1); in col()
85 …{ return Block<CoefficientsType,1,SizeAtCompileTime>(coeffs(),supers(),0,1,(std::min)(rows(),cols(… in diagonal()
89 …{ return Block<const CoefficientsType,1,SizeAtCompileTime>(coeffs(),supers(),0,1,(std::min)(rows()… in diagonal()
111 …return typename DiagonalIntReturnType<N>::BuildType(coeffs(), supers()-N, (std::max)(0,N), 1, diag… in diagonal()
117 …return typename DiagonalIntReturnType<N>::BuildType(coeffs(), supers()-N, (std::max)(0,N), 1, diag… in diagonal()
[all …]
/external/opencv/cvaux/src/
Dcvepilines.cpp100 CvStereoLineCoeff* coeffs, in icvCompute3DPoint() argument
116 partX = coeffs->Xcoef + coeffs->XcoefA *alpha + in icvCompute3DPoint()
117 coeffs->XcoefB*betta + coeffs->XcoefAB*alphabetta; in icvCompute3DPoint()
119 partY = coeffs->Ycoef + coeffs->YcoefA *alpha + in icvCompute3DPoint()
120 coeffs->YcoefB*betta + coeffs->YcoefAB*alphabetta; in icvCompute3DPoint()
122 partZ = coeffs->Zcoef + coeffs->ZcoefA *alpha + in icvCompute3DPoint()
123 coeffs->ZcoefB*betta + coeffs->ZcoefAB*alphabetta; in icvCompute3DPoint()
349 CvStereoLineCoeff* coeffs, in icvComCoeffForLine() argument
487 coeffs); in icvComCoeffForLine()
602 CvStereoLineCoeff* coeffs) in icvComputeStereoLineCoeffs() argument
[all …]
/external/eigen/Eigen/src/Eigen2Support/
DLeastSquares.h97 result->coeffRef(i) = - h.coeffs()[i] / h.coeffs()[funcOfOthers]; in linearRegression()
99 result->coeffRef(i) = - h.coeffs()[i+1] / h.coeffs()[funcOfOthers]; in linearRegression()
140 ei_assert(size+1 == result->coeffs().size());
/external/skia/tools/
Dgenerate_fir_coeff.py55 coeffs = [] variable
71 coeffs.append(coverage * target_sum)
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]…
118 print sum(coeffs), hex(sum(coeffs_rounded))
/external/webp/src/enc/
Dcost.c506 const int v = abs(res->coeffs[n]); in GetResidualCost()
514 const int v = abs(res->coeffs[n]); in GetResidualCost()
561 static void SetResidualCoeffs(const int16_t* const coeffs, in SetResidualCoeffs() argument
565 assert(res->first == 0 || coeffs[0] == 0); in SetResidualCoeffs()
567 if (coeffs[n]) { in SetResidualCoeffs()
572 res->coeffs = coeffs; in SetResidualCoeffs()
579 extern void VP8SetResidualCoeffsSSE2(const int16_t* const coeffs,
693 while ((v = res->coeffs[n++]) == 0) { in VP8RecordCoeffs()
Dcost.h30 const int16_t* coeffs; member
41 typedef void (*VP8SetResidualCoeffsFunc)(const int16_t* const coeffs,
/external/eigen/Eigen/src/Geometry/arch/
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/libavc/common/arm/
Dih264_iquant_itrans_recon_dc_a9.s289 vst1.32 d0, [r2], r4 @ Magnitudes of 1st 4x4 block coeffs
291 vst1.32 d1, [r2], r4 @ Magnitudes of 1st 4x4 block coeffs
293 vst1.32 d2, [r2], r4 @ Magnitudes of 1st 4x4 block coeffs
294 vst1.32 d3, [r2], r4 @ Magnitudes of 1st 4x4 block coeffs
295 vst1.32 d4, [r2], r4 @ Magnitudes of 1st 4x4 block coeffs
296 vst1.32 d5, [r2], r4 @ Magnitudes of 1st 4x4 block coeffs
297 vst1.32 d6, [r2], r4 @ Magnitudes of 1st 4x4 block coeffs
298 vst1.32 d7, [r2], r4 @ Magnitudes of 1st 4x4 block coeffs
367 vtrn.32 d2, d3 @mov the 4 coeffs of current block to d2
373 vld1.u8 d18, [r2], r0 @load out [8 bit size) -8 coeffs
/external/opencv/cxcore/src/
Dcxutils.cpp266 cvSolveCubic( const CvMat* coeffs, CvMat* roots ) in cvSolveCubic() argument
278 if( !CV_IS_MAT(coeffs) ) in cvSolveCubic()
279 CV_ERROR( !coeffs ? CV_StsNullPtr : CV_StsBadArg, "Input parameter is not a valid matrix" ); in cvSolveCubic()
284 if( (CV_MAT_TYPE(coeffs->type) != CV_32FC1 && CV_MAT_TYPE(coeffs->type) != CV_64FC1) || in cvSolveCubic()
289 coeff_count = coeffs->rows + coeffs->cols - 1; in cvSolveCubic()
291 if( (coeffs->rows != 1 && coeffs->cols != 1) || (coeff_count != 3 && coeff_count != 4) ) in cvSolveCubic()
300 if( CV_MAT_TYPE(coeffs->type) == CV_32FC1 ) in cvSolveCubic()
302 const float* c = coeffs->data.fl; in cvSolveCubic()
303 if( coeffs->rows > 1 ) in cvSolveCubic()
304 step = coeffs->step/sizeof(c[0]); in cvSolveCubic()
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Darc.c432 const double (*coeffs)[4][4]; in estimate_error() local
434 coeffs = (x < 0.25) ? coeffs3Low : coeffs3High; in estimate_error()
437 c0 = rational_function(x, coeffs[0][0]) in estimate_error()
438 + cos2 * rational_function(x, coeffs[0][1]) in estimate_error()
439 + cos4 * rational_function(x, coeffs[0][2]) in estimate_error()
440 + cos6 * rational_function(x, coeffs[0][3]); in estimate_error()
442 c1 = rational_function(x, coeffs[1][0]) in estimate_error()
443 + cos2 * rational_function(x, coeffs[1][1]) in estimate_error()
444 + cos4 * rational_function(x, coeffs[1][2]) in estimate_error()
445 + cos6 * rational_function(x, coeffs[1][3]); in estimate_error()
/external/eigen/doc/special_examples/
DTutorial_sparse_example_details.cpp8 void insertCoefficient(int id, int i, int j, double w, std::vector<T>& coeffs, in insertCoefficient() argument
16 else coeffs.push_back(T(id,id1,w)); // unknown coefficient in insertCoefficient()

123