Home
last modified time | relevance | path

Searched refs:determinant (Results 1 – 25 of 113) sorted by relevance

12345

/external/eigen/test/eigen2/
Deigen2_determinant.cpp14 template<typename MatrixType> void determinant(const MatrixType& m) in determinant() function
26 VERIFY_IS_APPROX(MatrixType::Identity(size, size).determinant(), Scalar(1)); in determinant()
27 VERIFY_IS_APPROX((m1*m2).determinant(), m1.determinant() * m2.determinant()); in determinant()
36 VERIFY_IS_APPROX(m2.determinant(), -m1.determinant()); in determinant()
39 VERIFY_IS_APPROX(m2.determinant(), -m1.determinant()); in determinant()
40 VERIFY_IS_APPROX(m2.determinant(), m2.transpose().determinant()); in determinant()
41 VERIFY_IS_APPROX(ei_conj(m2.determinant()), m2.adjoint().determinant()); in determinant()
44 VERIFY_IS_APPROX(m2.determinant(), m1.determinant()); in determinant()
47 VERIFY_IS_APPROX(m2.determinant(), m1.determinant() * x); in determinant()
53 CALL_SUBTEST_1( determinant(Matrix<float, 1, 1>()) ); in test_eigen2_determinant()
[all …]
Deigen2_sparse_solvers.cpp150 Scalar refDet = refLu.determinant(); in sparse_solvers()
166 VERIFY_IS_APPROX(refDet,slu.determinant()); // FIXME det is not very stable for complex in sparse_solvers()
182 VERIFY_IS_APPROX(refDet,slu.determinant()); in sparse_solvers()
Deigen2_inverse.cpp30 while(ei_abs(m1.determinant()) < RealScalar(0.1) && rows <= 8) in inverse()
/external/eigen/test/
Ddeterminant.cpp14 template<typename MatrixType> void determinant(const MatrixType& m) in determinant() function
27 VERIFY_IS_APPROX(MatrixType::Identity(size, size).determinant(), Scalar(1)); in determinant()
28 VERIFY_IS_APPROX((m1*m2).eval().determinant(), m1.determinant() * m2.determinant()); in determinant()
37 VERIFY_IS_APPROX(m2.determinant(), -m1.determinant()); in determinant()
40 VERIFY_IS_APPROX(m2.determinant(), -m1.determinant()); in determinant()
41 VERIFY_IS_APPROX(m2.determinant(), m2.transpose().determinant()); in determinant()
42 VERIFY_IS_APPROX(numext::conj(m2.determinant()), m2.adjoint().determinant()); in determinant()
45 VERIFY_IS_APPROX(m2.determinant(), m1.determinant()); in determinant()
48 VERIFY_IS_APPROX(m2.determinant(), m1.determinant() * x); in determinant()
51 VERIFY_IS_APPROX(m2.block(0,0,0,0).determinant(), Scalar(1)); in determinant()
[all …]
Dinverse.cpp56 VERIFY_IS_APPROX(det, m1.determinant()); in inverse()
68 VERIFY_IS_MUCH_SMALLER_THAN(abs(det-m3.determinant()), RealScalar(1)); in inverse()
Dlu.cpp160 VERIFY_RAISES_ASSERT(lu.determinant()) in lu_verify_assert()
172 VERIFY_RAISES_ASSERT(plu.determinant()) in lu_verify_assert()
/external/eigen/Eigen/src/LU/
DInverse.h54 typename ResultType::Scalar& determinant,
59 determinant = matrix.coeff(0,0);
60 invertible = abs(determinant) > absDeterminantThreshold;
61 if(invertible) result.coeffRef(0,0) = typename ResultType::Scalar(1) / determinant;
86 const Scalar invdet = typename MatrixType::Scalar(1) / matrix.determinant();
98 typename ResultType::Scalar& determinant,
104 determinant = matrix.determinant();
105 invertible = abs(determinant) > absDeterminantThreshold;
107 const Scalar invdet = Scalar(1) / determinant;
168 typename ResultType::Scalar& determinant,
[all …]
DDeterminant.h41 return m.partialPivLu().determinant(); in run()
92 inline typename internal::traits<Derived>::Scalar MatrixBase<Derived>::determinant() const
/external/eigen/doc/snippets/
DMatrixBase_computeInverseAndDetWithCheck.cpp5 double determinant; variable
6 m.computeInverseAndDetWithCheck(inverse,determinant,invertible);
7 cout << "Its determinant is " << determinant << endl;
/external/eigen/Eigen/
DLU9 …his module includes %LU decomposition and related notions such as matrix inversion and determinant.
12 * - MatrixBase::determinant()
/external/eigen/Eigen/src/Geometry/
DUmeyama.h139 if (sigma.determinant()<Scalar(0)) S(m-1) = Scalar(-1);
145 if ( svd.matrixU().determinant() * svd.matrixV().determinant() > Scalar(0) ) {
/external/deqp/framework/common/
DtcuMatrix.hpp126 T determinant (const Matrix<T, Size, Size>& mat) in determinant() function
161 using matrix::determinant; in doDeterminant()
187 return + mat(0,0) * determinant(Matrix<T, 3, 3>(minorMatrices[0])) in doDeterminant()
188 - mat(0,1) * determinant(Matrix<T, 3, 3>(minorMatrices[1])) in doDeterminant()
189 + mat(0,2) * determinant(Matrix<T, 3, 3>(minorMatrices[2])) in doDeterminant()
190 - mat(0,3) * determinant(Matrix<T, 3, 3>(minorMatrices[3])); in doDeterminant()
196 using matrix::determinant; in doInverse()
198 const T det = determinant(mat); in doInverse()
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DCholeskyDecompositionImpl.java177 double determinant = 1.0; in getDeterminant() local
180 determinant *= lTii * lTii; in getDeterminant()
182 return determinant; in getDeterminant()
DFieldLUDecompositionImpl.java209 T determinant = even ? field.getOne() : field.getZero().subtract(field.getOne()); in getDeterminant() local
211 determinant = determinant.multiply(lu[i][i]); in getDeterminant()
213 return determinant; in getDeterminant()
DLUDecompositionImpl.java218 double determinant = even ? 1 : -1; in getDeterminant() local
220 determinant *= lu[i][i]; in getDeterminant()
222 return determinant; in getDeterminant()
DEigenDecompositionImpl.java231 double determinant = 1; in getDeterminant() local
233 determinant *= lambda; in getDeterminant()
235 return determinant; in getDeterminant()
/external/llvm/test/Transforms/InstCombine/
D2006-12-08-Select-ICmp.ll33 …%tmp13 = call i32 @determinant( i64 %tmp.upgrd.3, i64 %tmp9, i64 %tmp12 ) ; <i32> [#uses=2]
41 declare i32 @determinant(i64, i64, i64)
D2006-12-08-Phi-ICmp-Op-Fold.ll33 %tmp13 = call i32 @determinant( i64 %tmp.upgrd.3, i64 %tmp9, i64 %tmp12 ) ; <i32> [#uses=2]
51 declare i32 @determinant(i64, i64, i64)
/external/eigen/doc/examples/
DTutorialLinAlgInverseDeterminant.cpp14 cout << "The determinant of A is " << A.determinant() << endl; in main()
/external/skia/tests/
DMatrix44Test.cpp314 REPORTER_ASSERT(reporter, nearly_equal_double(1, a.determinant())); in test_determinant()
316 REPORTER_ASSERT(reporter, nearly_equal_double(2, a.determinant())); in test_determinant()
319 REPORTER_ASSERT(reporter, nearly_equal_double(0.5, b.determinant())); in test_determinant()
324 nearly_equal_double(a.determinant(), in test_determinant()
325 b.determinant())); in test_determinant()
328 REPORTER_ASSERT(reporter, nearly_equal_double(16, d.determinant())); in test_determinant()
332 REPORTER_ASSERT(reporter, nearly_equal_double(32, e.determinant())); in test_determinant()
334 REPORTER_ASSERT(reporter, nearly_equal_double(0, e.determinant())); in test_determinant()
/external/eigen/doc/
DTutorialLinearAlgebra.dox146 \section TutorialLinAlgInverse Computing inverse and determinant
148 First of all, make sure that you really want this. While inverse and determinant are fundamental ma…
150 advantageously replaced by solve() operations, and the determinant is often \em not a good way of c…
153 However, for \em very \em small matrices, the above is not true, and inverse and determinant can be…
155 While certain decompositions, such as PartialPivLU and FullPivLU, offer inverse() and determinant()…
156 call inverse() and determinant() directly on a matrix. If your matrix is of a very small fixed size…
/external/ImageMagick/MagickCore/
Ddistort.c98 double determinant; in InvertAffineCoefficients() local
100 determinant=PerceptibleReciprocal(coeff[0]*coeff[4]-coeff[1]*coeff[3]); in InvertAffineCoefficients()
101 inverse[0]=determinant*coeff[4]; in InvertAffineCoefficients()
102 inverse[1]=determinant*(-coeff[1]); in InvertAffineCoefficients()
103 inverse[2]=determinant*(coeff[1]*coeff[5]-coeff[2]*coeff[4]); in InvertAffineCoefficients()
104 inverse[3]=determinant*(-coeff[3]); in InvertAffineCoefficients()
105 inverse[4]=determinant*coeff[0]; in InvertAffineCoefficients()
106 inverse[5]=determinant*(coeff[2]*coeff[3]-coeff[0]*coeff[5]); in InvertAffineCoefficients()
113 double determinant; in InvertPerspectiveCoefficients() local
115 determinant=PerceptibleReciprocal(coeff[0]*coeff[4]-coeff[3]*coeff[1]); in InvertPerspectiveCoefficients()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderMatrixTests.cpp661 float determinant (const tcu::Matrix<float, Size, Size>& mat);
664 float determinant<2> (const tcu::Matrix<float, 2, 2>& mat) in determinant() function
670 float determinant<3> (const tcu::Matrix<float, 3, 3>& mat) in determinant() function
681 float determinant<4> (const tcu::Matrix<float, 4, 4>& mat) in determinant() function
707 return + mat(0,0) * determinant(tcu::Mat3(minorMatrices[0])) in determinant()
708 - mat(0,1) * determinant(tcu::Mat3(minorMatrices[1])) in determinant()
709 + mat(0,2) * determinant(tcu::Mat3(minorMatrices[2])) in determinant()
710 - mat(0,3) * determinant(tcu::Mat3(minorMatrices[3])); in determinant()
721 const float det = determinant(mat); in inverse()
739 DE_ASSERT(determinant(mat) != 0.0f); in inverse()
[all …]
/external/deqp/modules/gles3/functional/
Des3fShaderMatrixTests.cpp666 float determinant (const tcu::Matrix<float, Size, Size>& mat);
669 float determinant<2> (const tcu::Matrix<float, 2, 2>& mat) in determinant() function
675 float determinant<3> (const tcu::Matrix<float, 3, 3>& mat) in determinant() function
686 float determinant<4> (const tcu::Matrix<float, 4, 4>& mat) in determinant() function
712 return + mat(0,0) * determinant(tcu::Mat3(minorMatrices[0])) in determinant()
713 - mat(0,1) * determinant(tcu::Mat3(minorMatrices[1])) in determinant()
714 + mat(0,2) * determinant(tcu::Mat3(minorMatrices[2])) in determinant()
715 - mat(0,3) * determinant(tcu::Mat3(minorMatrices[3])); in determinant()
726 const float det = determinant(mat); in inverse()
744 DE_ASSERT(determinant(mat) != 0.0f); in inverse()
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dmatrix-decomposition.js17 function determinant(m) { function
36 var iDet = 1 / determinant(m);
124 if (determinant(perspectiveMatrix) === 0) {

12345