Home
last modified time | relevance | path

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

12

/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()
166 inline const Coefficients& coeffs() const { return m_coeffs; } in coeffs() function
171 inline Coefficients& coeffs() { return m_coeffs; } in coeffs() function
182 …Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coef… in intersection()
187 if(internal::abs(coeffs().coeff(1))>internal::abs(coeffs().coeff(0))) in intersection()
188 … return VectorType(coeffs().coeff(1), -coeffs().coeff(2)/coeffs().coeff(1)-coeffs().coeff(0)); in intersection()
190 … return VectorType(-coeffs().coeff(2)/coeffs().coeff(0)-coeffs().coeff(1), coeffs().coeff(0)); in intersection()
195 …return VectorType(invdet*(coeffs().coeff(1)*other.coeffs().coeff(2)-other.coeffs().coeff(1)*coeffs in intersection()
196 … invdet*(other.coeffs().coeff(0)*coeffs().coeff(2)-coeffs().coeff(0)*other.coeffs().coeff(2))); in intersection()
252 { 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 …]
DScaling.h136 static inline const DiagonalWrapper<const Derived> Scaling(const MatrixBase<Derived>& coeffs) in Scaling() argument
137 { return coeffs.asDiagonal(); } in Scaling()
/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.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()
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()
/external/eigen/test/
Dgeo_quaternion.cpp74 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); in quaternion()
75 q1.coeffs().setRandom(); in quaternion()
76 VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs()); in quaternion()
89 if((q1.coeffs()-q2.coeffs()).norm() > 10*largeEps) in quaternion()
167 q1.coeffs() = Vector4::Random().normalized(); in quaternion()
168 q2.coeffs() = -q1.coeffs(); in quaternion()
184 MQuaternionA(array1).coeffs().setRandom(); in mapQuaternion()
193 VERIFY_IS_APPROX(q1.coeffs(), q2.coeffs()); in mapQuaternion()
194 VERIFY_IS_APPROX(q1.coeffs(), q3.coeffs()); in mapQuaternion()
195 VERIFY_IS_APPROX(q4.coeffs(), q3.coeffs()); in mapQuaternion()
[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()
131 p1->coeffs().setRandom(); in hyperplane_alignment()
135 VERIFY_IS_APPROX(p1->coeffs(), p2->coeffs()); in hyperplane_alignment()
136 VERIFY_IS_APPROX(p1->coeffs(), p3->coeffs()); in hyperplane_alignment()
/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 …]
Dcveigenobjects.cpp964 CvSize size, float *coeffs ) in icvEigenDecomposite_8u32fR() argument
975 if( obj == NULL || eigInput == NULL || coeffs == NULL || avg == NULL ) in icvEigenDecomposite_8u32fR()
1013 coeffs[i] = w; in icvEigenDecomposite_8u32fR()
1027 coeffs[i] = w; in icvEigenDecomposite_8u32fR()
1056 int ioFlags, void *userData, float *coeffs, in icvEigenProjection_8u32fR() argument
1068 if( rest == NULL || eigInput == NULL || avg == NULL || coeffs == NULL ) in icvEigenProjection_8u32fR()
1110 float c = coeffs[k]; in icvEigenProjection_8u32fR()
1604 float* coeffs ) in cvEigenDecomposite() argument
1671 coeffs )); in cvEigenDecomposite()
1688 coeffs )); in cvEigenDecomposite()
[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/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/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/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()
/external/libvpx/vp8/encoder/arm/armv6/
Dvp8_fast_quantize_b_armv6.asm39 mov r1, #0 ; flags for quantized coeffs
75 orrne r1, r1, r2, lsr #24 ; add flag for nonzero coeffs
85 orrne r1, r1, r2, lsr #23 ; add flag for nonzero coeffs
106 cmp r1, #0 ; coeffs after quantization?
/external/webp/src/enc/
Dframe.c32 const int16_t* coeffs; member
124 while ((v = res->coeffs[n++]) == 0) { in RecordCoeffs()
226 static void SetResidualCoeffs(const int16_t* const coeffs, in SetResidualCoeffs() argument
231 if (coeffs[n]) { in SetResidualCoeffs()
236 res->coeffs = coeffs; in SetResidualCoeffs()
253 const int v = res->coeffs[n]; in GetResidualCost()
351 const int c = res->coeffs[n++]; in PutCoeffs()
576 const int c = res->coeffs[n++]; in RecordCoeffTokens()
/external/eigen/demos/opengl/
Dquaternion_demo.cpp154 const Vector3& coeffs() const { return m_angles; } in coeffs() function in EulerAngles
155 Vector3& coeffs() { return m_angles; } in coeffs() function in EulerAngles
192 res.coeffs() = lerp(t, a.coeffs(), b.coeffs()); in lerp()
302 currentFrame.orientation.coeffs().normalize(); in animate()
/external/opencv/cvaux/include/
Dcvaux.h91 float* coeffs );
95 void* userData, float* coeffs, IplImage* avg,
530 double coeffs[2][3][3];/* coefficients for transformation */ member
553 CVAPI(int) icvConvertWarpCoordinates(double coeffs[3][3],
566 CvStereoLineCoeff* coeffs,
599 CVAPI(void) cvComputePerspectiveMap( const double coeffs[3][3], CvArr* rectMapX, CvArr* rectMapY );
611 CvStereoLineCoeff* coeffs,
626 CvStereoLineCoeff* coeffs);
/external/webp/src/dsp/
Ddsp.h100 typedef void (*VP8DecIdct)(const int16_t* coeffs, uint8_t* dst);
102 typedef void (*VP8DecIdct2)(const int16_t* coeffs, uint8_t* dst, int do_two);

12